2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 15:57:03 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-07 13:16:35 +00:00
|
|
|
, isPy27
|
2018-10-26 15:57:03 +01:00
|
|
|
, six
|
2019-09-26 16:15:46 +01:00
|
|
|
, pytest_4
|
2020-05-10 08:41:41 +01:00
|
|
|
, hypothesis_4
|
2019-01-08 05:02:12 +00:00
|
|
|
, pytestrunner
|
2018-10-26 15:57:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrsistent";
|
2020-11-29 14:04:38 +00:00
|
|
|
version = "0.17.3";
|
2018-10-26 15:57:03 +01:00
|
|
|
|
2020-12-07 13:16:35 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2018-10-26 15:57:03 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:38 +00:00
|
|
|
sha256 = "2e636185d9eb976a18a8a8e96efce62f2905fea90041958d8cc2a189756ebf3e";
|
2018-10-26 15:57:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2020-05-10 08:41:41 +01:00
|
|
|
checkInputs = [ pytestrunner pytest_4 hypothesis_4 ];
|
2019-01-08 05:02:12 +00:00
|
|
|
|
2019-09-24 16:41:35 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'pytest<5' 'pytest'
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tobgu/pyrsistent/";
|
2018-10-26 15:57:03 +01:00
|
|
|
description = "Persistent/Functional/Immutable data structures";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|