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

42 lines
866 B
Nix
Raw Normal View History

2019-01-10 17:08:31 +00:00
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm
, sphinx
, hypothesis
, py
, pytestCheckHook
2019-01-10 17:08:31 +00:00
, pytest-benchmark
, sortedcollections
, sortedcontainers
, isPy3k
2019-01-10 17:08:31 +00:00
}:
buildPythonPackage rec {
pname = "bidict";
version = "0.21.2";
disabled = !isPy3k;
2019-01-10 17:08:31 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "4fa46f7ff96dc244abfc437383d987404ae861df797e2fd5b190e233c302be09";
2019-01-10 17:08:31 +00:00
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ sphinx ];
checkInputs = [
hypothesis
py
pytestCheckHook
2019-01-10 17:08:31 +00:00
pytest-benchmark
sortedcollections
sortedcontainers
];
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 ];
};
}