1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
hypothesis,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
typing-extensions,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bidict";
|
|
version = "0.23.1";
|
|
pyproject = true;
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|