Files
nixpkgs/pkgs/development/python-modules/bidict/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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";
tag = "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 = {
homepage = "https://bidict.readthedocs.io";
changelog = "https://bidict.readthedocs.io/changelog.html";
description = "Bidirectional mapping library for Python";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
jab
jakewaksbaum
];
};
}