nixpkgs-suyu/pkgs/development/python-modules/pyrsistent/default.nix
2021-09-05 14:58:03 +02:00

40 lines
816 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, six
, pytestCheckHook
, hypothesis
}:
buildPythonPackage rec {
pname = "pyrsistent";
version = "0.18.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "773c781216f8c2900b42a7b638d5b517bb134ae1acbebe4d1e8f1f41ea60eb4b";
};
propagatedBuildInputs = [ six ];
checkInputs = [ pytestCheckHook hypothesis ];
postPatch = ''
substituteInPlace setup.py \
--replace 'pytest<5' 'pytest' \
--replace 'hypothesis<5' 'hypothesis'
'';
pythonImportsCheck = [ "pyrsistent" ];
meta = with lib; {
homepage = "https://github.com/tobgu/pyrsistent/";
description = "Persistent/Functional/Immutable data structures";
license = licenses.mit;
maintainers = with maintainers; [ desiderius ];
};
}