Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyrsistent / default.nix
blob37de5033477f6b48421e9723670d8d70d639a25a
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , six
6 , pytestCheckHook
7 , hypothesis
8 }:
10 buildPythonPackage rec {
11   pname = "pyrsistent";
12   version = "0.19.3";
14   disabled = isPy27;
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-GimUdzcGu7SZXDGpe8lPFBgxSSO9EEjG2WSDcEA3ZEA=";
19   };
21   propagatedBuildInputs = [ six ];
23   nativeCheckInputs = [ pytestCheckHook hypothesis ];
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace 'pytest<5' 'pytest' \
28       --replace 'hypothesis<5' 'hypothesis'
29   '';
31   pythonImportsCheck = [ "pyrsistent" ];
33   meta = with lib; {
34     homepage = "https://github.com/tobgu/pyrsistent/";
35     description = "Persistent/Functional/Immutable data structures";
36     license = licenses.mit;
37     maintainers = with maintainers; [ desiderius ];
38   };