1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, six
5, pytest_4
6, hypothesis_4
7, pytestrunner
8}:
9
10buildPythonPackage rec {
11 pname = "pyrsistent";
12 version = "0.16.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "28669905fe725965daa16184933676547c5bb40a5153055a8dee2a4bd7933ad3";
17 };
18
19 propagatedBuildInputs = [ six ];
20
21 checkInputs = [ pytestrunner pytest_4 hypothesis_4 ];
22
23 postPatch = ''
24 substituteInPlace setup.py --replace 'pytest<5' 'pytest'
25 '';
26
27 meta = with stdenv.lib; {
28 homepage = "https://github.com/tobgu/pyrsistent/";
29 description = "Persistent/Functional/Immutable data structures";
30 license = licenses.mit;
31 maintainers = with maintainers; [ desiderius ];
32 };
33
34}