depot/third_party/nixpkgs/pkgs/development/python-modules/bidict/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

44 lines
889 B
Nix

{ lib, buildPythonPackage, fetchPypi
, setuptools_scm
, sphinx
, hypothesis
, py
, pytest
, pytest-benchmark
, sortedcollections
, sortedcontainers
, isPy3k
}:
buildPythonPackage rec {
pname = "bidict";
version = "0.18.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1742a25a9ef1b1ac4000683406879a3e1a6577faa02f31e482e6c84e2e3bf628";
};
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 ];
};
}