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
|
|
|
, hypothesis
|
2023-03-15 16:39:30 +00:00
|
|
|
, pytest-xdist
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, typing-extensions
|
2021-09-18 10:52:07 +00:00
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bidict";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.23.1";
|
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
wheel
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
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
|
2023-03-15 16:39:30 +00:00
|
|
|
pytest-xdist
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
2024-04-21 15:54:59 +00:00
|
|
|
typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Remove the bundled pytest.ini, which adds options to run additional integration
|
|
|
|
# tests that are overkill for our purposes.
|
|
|
|
preCheck = ''
|
|
|
|
rm pytest.ini
|
|
|
|
'';
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pythonImportsCheck = [ "bidict" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://bidict.readthedocs.io";
|
|
|
|
changelog = "https://bidict.readthedocs.io/changelog.html";
|
|
|
|
description = "The bidirectional mapping library for Python.";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ jab jakewaksbaum ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|