2018-10-26 16:57:03 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, pytest
|
|
|
|
, hypothesis
|
2019-01-08 06:02:12 +01:00
|
|
|
, pytestrunner
|
2018-10-26 16:57:03 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrsistent";
|
2019-01-16 23:34:50 +01:00
|
|
|
version = "0.14.9";
|
2018-10-26 16:57:03 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-16 23:34:50 +01:00
|
|
|
sha256 = "0xwaqjjn665wd1rllqzndmlc8yzfw2wxakpfwlh6ir6kgbajff2s";
|
2018-10-26 16:57:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2019-01-08 06:02:12 +01:00
|
|
|
checkInputs = [ pytestrunner pytest hypothesis ];
|
|
|
|
|
|
|
|
# pytestrunner is only needed to run tests
|
|
|
|
patches = [ ./no-setup-requires-pytestrunner.patch ];
|
2018-10-26 16:57:03 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/tobgu/pyrsistent/;
|
|
|
|
description = "Persistent/Functional/Immutable data structures";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|