nur-packages

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

default.nix (897B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "maproulette-python-client";
      9   version = "1.8.1";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "osmlab";
     14     repo = "maproulette-python-client";
     15     rev = "v${version}";
     16     hash = "sha256-EmYa2B1FO4PNE1pdoPXeKo8uoY7Tc1cRwkqxiD41WrQ=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace setup.py \
     21       --replace-fail 'setup_requires=["pytest-runner"],' ""
     22   '';
     23 
     24   build-system = with python3Packages; [ setuptools ];
     25 
     26   dependencies = with python3Packages; [ requests ];
     27 
     28   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     29 
     30   doCheck = false;
     31 
     32   meta = {
     33     description = "A Python API wrapper for MapRoulette";
     34     homepage = "https://github.com/osmlab/maproulette-python-client";
     35     license = lib.licenses.asl20;
     36     maintainers = [ lib.maintainers.sikmir ];
     37   };
     38 }