mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
0215034f25
when they already rely on SRI hashes.
41 lines
807 B
Nix
41 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, six
|
|
, pytestCheckHook
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrsistent";
|
|
version = "0.19.3";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-GimUdzcGu7SZXDGpe8lPFBgxSSO9EEjG2WSDcEA3ZEA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
|
|
}
|