qgroundcontrol: 4.4.2 -> 4.4.3 (#360956)
[NixPkgs.git] / pkgs / development / python-modules / pycategories / default.nix
blob98a8e360d15722231c3db7f335ce5fd95f2e9c82
2   lib,
3   buildPythonPackage,
4   callPackage,
5   fetchPypi,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "pycategories";
12   version = "1.2.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-vXDstelOdlnlZOoVPwx2cykdw3xSbCRoAPwI1sU3gJk=";
20   };
22   postPatch = ''
23     substituteInPlace setup.py \
24       --replace "'pytest-runner'," ""
25     substituteInPlace setup.cfg \
26       --replace "--cov-report term --cov=categories" ""
27   '';
29   # Is private because the author states it's unmaintained
30   # and shouldn't be used in production code
31   propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   meta = with lib; {
36     description = "Implementation of some concepts from category theory";
37     homepage = "https://gitlab.com/danielhones/pycategories";
38     changelog = "https://gitlab.com/danielhones/pycategories/-/blob/v${version}/CHANGELOG.rst";
39     license = licenses.mit;
40     maintainers = with maintainers; [ dmvianna ];
41   };