nur-packages

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

default.nix (898B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "prettymapp";
      5   version = "0.3.0";
      6 
      7   src = fetchFromGitHub {
      8     owner = "chrieke";
      9     repo = "prettymapp";
     10     rev = version;
     11     hash = "sha256-6UO2+pvtm3t6LjC2v91NJVLVo74Bdx1xzpHqvL15UCg=";
     12   };
     13 
     14   postPatch = "sed -i 's/==.*//' requirements.txt";
     15 
     16   propagatedBuildInputs = with python3Packages; [ osmnx ];
     17 
     18   nativeCheckInputs = with python3Packages; [ pytestCheckHook mock ];
     19 
     20   disabledTests = [
     21     "test_get_aoi_from_user_input_address"
     22     "test_get_aoi_from_user_input_rectangle"
     23     "test_get_aoi_from_user_input_coordinates"
     24     "test_get_osm_geometries_from_xml"
     25   ];
     26 
     27   meta = with lib; {
     28     description = "Create beautiful maps from OpenStreetMap data in a webapp";
     29     inherit (src.meta) homepage;
     30     license = licenses.mit;
     31     maintainers = [ maintainers.sikmir ];
     32   };
     33 }