mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
59 lines
1.1 KiB
Nix
59 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
|
|
];
|
|
};
|
|
}
|