2019-01-10 17:08:31 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, sphinx
|
|
|
|
, hypothesis
|
|
|
|
, py
|
|
|
|
, pytest
|
|
|
|
, pytest-benchmark
|
|
|
|
, sortedcollections
|
|
|
|
, sortedcontainers
|
2019-10-07 16:20:23 +01:00
|
|
|
, isPy3k
|
2019-01-10 17:08:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bidict";
|
2020-05-08 19:25:41 +01:00
|
|
|
version = "0.19.0";
|
2019-10-07 16:20:23 +01:00
|
|
|
disabled = !isPy3k;
|
2019-01-10 17:08:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-08 19:25:41 +01:00
|
|
|
sha256 = "11wiis62kcw6g3n4gdj39fx1yrlq5vz3zx3kmb6g79mliyhn2x7g";
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|