5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
44 lines
875 B
Nix
44 lines
875 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, setuptools_scm
|
|
, sphinx
|
|
, hypothesis
|
|
, py
|
|
, pytest
|
|
, pytest-benchmark
|
|
, sortedcollections
|
|
, sortedcontainers
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bidict";
|
|
version = "0.18.2";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0br3ljvd56nqifr1mbwksvl5jjk40pihrrjlyn7hmc40yq6m5bvh";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|