summary refs log blame commit diff
path: root/pkgs/development/python-modules/pycategories/default.nix
blob: 55f30f9e55a97cdb84fb02c0f8a23092e15b7013 (plain) (tree)


































                                                                                
{ buildPythonPackage
, callPackage
, pytestcov
, fetchPypi
, lib
, pytest
, pythonOlder
, pytestrunner
}:

buildPythonPackage rec {
  pname = "pycategories";
  version = "1.2.0";
  disabled = pythonOlder "3.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099";
  };

  nativeBuildInputs = [ pytestrunner ];

  # Is private because the author states it's unmaintained
  # and shouldn't be used in production code
  propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];

  checkInputs = [ pytest pytestcov ];

  meta = with lib; {
    homepage = "https://gitlab.com/danielhones/pycategories";
    description = "Implementation of some concepts from category theory";
    license = licenses.mit;
    maintainers = with maintainers; [ dmvianna ];
  };
}