2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-03-15 16:39:30 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, sphinx
|
|
|
|
, hypothesis
|
|
|
|
, py
|
2023-03-15 16:39:30 +00:00
|
|
|
, pytest-xdist
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-benchmark
|
|
|
|
, sortedcollections
|
|
|
|
, sortedcontainers
|
2021-09-18 10:52:07 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bidict";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.22.1";
|
|
|
|
format = "pyproject";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jab";
|
|
|
|
repo = "bidict";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-mPBruasjQwErl5M91OBf71hArztdRVONOCnqos180DY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
hypothesis
|
|
|
|
py
|
2023-03-15 16:39:30 +00:00
|
|
|
pytest-xdist
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-benchmark
|
|
|
|
sortedcollections
|
|
|
|
sortedcontainers
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pythonImportsCheck = [ "bidict" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jab/bidict";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/jab/bidict/blob/v${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Efficient, Pythonic bidirectional map data structures and related functionality";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|