mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
45 lines
877 B
Nix
45 lines
877 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, setuptools_scm
|
|
, sphinx
|
|
, hypothesis
|
|
, py
|
|
, pytest
|
|
, pytest-benchmark
|
|
, sortedcollections
|
|
, sortedcontainers
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bidict";
|
|
version = "0.19.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "11wiis62kcw6g3n4gdj39fx1yrlq5vz3zx3kmb6g79mliyhn2x7g";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|