mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
45 lines
887 B
Nix
45 lines
887 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 ];
|
|
};
|
|
}
|