3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/bidict/default.nix

51 lines
1 KiB
Nix
Raw Normal View History

2019-01-10 17:08:31 +00:00
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm
, sphinx
, hypothesis
, py
, pytest
, pytest-benchmark
, sortedcollections
, sortedcontainers
, isPy3k
2019-01-10 17:08:31 +00:00
}:
buildPythonPackage rec {
pname = "bidict";
2020-08-16 18:30:53 +01:00
version = "0.20.0";
disabled = !isPy3k;
2019-01-10 17:08:31 +00:00
src = fetchPypi {
inherit pname version;
2020-08-16 18:30:53 +01:00
sha256 = "c1b1ce1c0f1e3457489672bc3a4db375a06f61ae7797a9eedf71ea788cea3870";
2019-01-10 17:08:31 +00:00
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ sphinx ];
2020-06-26 02:14:48 +01:00
# this can be removed >0.19.0
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools_scm < 4" "setuptools_scm"
'';
2019-01-10 17:08:31 +00:00
checkInputs = [
hypothesis
py
pytest
pytest-benchmark
sortedcollections
sortedcontainers
];
checkPhase = ''
pytest tests
'';
meta = with lib; {
homepage = "https://github.com/jab/bidict";
2019-01-10 17:08:31 +00:00
description = "Efficient, Pythonic bidirectional map data structures and related functionality";
license = licenses.mpl20;
maintainers = with maintainers; [ jakewaksbaum ];
};
}