nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (891B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub, cykhash, pyrobuf }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "pyrosm";
      5   version = "0.6.1";
      6 
      7   src = fetchFromGitHub {
      8     owner = "HTenkanen";
      9     repo = "pyrosm";
     10     rev = "v${version}";
     11     hash = "sha256-/VS8TWSn/UACtRIRX9iaA39ikIzL1pzgNzZntPFYNmw=";
     12   };
     13 
     14   nativeBuildInputs = with python3Packages; [ cython ];
     15 
     16   propagatedBuildInputs = with python3Packages; [
     17     python-rapidjson
     18     geopandas
     19     pygeos
     20     cykhash
     21     pyrobuf
     22   ];
     23 
     24   doCheck = false;
     25 
     26   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     27 
     28   pythonImportsCheck = [ "pyrosm" ];
     29 
     30   meta = with lib; {
     31     description = "A Python tool to parse OSM data from Protobuf format into GeoDataFrame";
     32     inherit (src.meta) homepage;
     33     license = licenses.mit;
     34     maintainers = [ maintainers.sikmir ];
     35     broken = stdenv.isDarwin; # pygeos
     36   };
     37 }