nur-packages

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

default.nix (915B)


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