nixpkgs/pkgs/development/python-modules/bidict/default.nix

45 lines
887 B
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";
2019-10-16 09:43:03 +00:00
version = "0.18.3";
disabled = !isPy3k;
2019-01-10 17:08:31 +00:00
src = fetchPypi {
inherit pname version;
2019-10-16 09:43:03 +00:00
sha256 = "1742a25a9ef1b1ac4000683406879a3e1a6577faa02f31e482e6c84e2e3bf628";
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 ];
};
}