2019-01-10 17:08:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, sphinx
|
|
|
|
, hypothesis
|
|
|
|
, py
|
|
|
|
, pytest
|
|
|
|
, pytest-benchmark
|
|
|
|
, sortedcollections
|
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bidict";
|
2019-02-14 07:37:11 +00:00
|
|
|
version = "0.18.0";
|
2019-01-10 17:08:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:11 +00:00
|
|
|
sha256 = "4d10630fd5d86b7c165387473c5180e7fca7635f12e24b1f426aac259c72c81a";
|
2019-01-10 17:08:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
py
|
|
|
|
pytest
|
|
|
|
pytest-benchmark
|
|
|
|
sortedcollections
|
|
|
|
sortedcontainers
|
|
|
|
];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/jab/bidict;
|
|
|
|
description = "Efficient, Pythonic bidirectional map data structures and related functionality";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|