depot/third_party/nixpkgs/pkgs/development/python-modules/bidict/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
hypothesis,
pytest-xdist,
pytestCheckHook,
typing-extensions,
pythonOlder,
wheel,
}:
buildPythonPackage rec {
pname = "bidict";
version = "0.23.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jab";
repo = "bidict";
rev = "refs/tags/v${version}";
hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
};
build-system = [
setuptools
wheel
];
nativeCheckInputs = [
hypothesis
pytest-xdist
pytestCheckHook
typing-extensions
];
# Remove the bundled pytest.ini, which adds options to run additional integration
# tests that are overkill for our purposes.
preCheck = ''
rm pytest.ini
'';
pythonImportsCheck = [ "bidict" ];
meta = with lib; {
homepage = "https://bidict.readthedocs.io";
changelog = "https://bidict.readthedocs.io/changelog.html";
description = "Bidirectional mapping library for Python";
license = licenses.mpl20;
maintainers = with maintainers; [
jab
jakewaksbaum
];
};
}