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
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
jaraco-classes,
|
|
more-itertools,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco-functools";
|
|
version = "4.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "jaraco_functools";
|
|
inherit version;
|
|
hash = "sha256-vmNKv8yrzlb6MFP4x+vje2gmg6Tud5NnDO0XurAIc1M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/coherent\.licensed/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [ more-itertools ];
|
|
|
|
nativeCheckInputs = [
|
|
jaraco-classes
|
|
pytestCheckHook
|
|
];
|
|
|
|
# test is flaky on darwin
|
|
disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_function_throttled" ] else null;
|
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
pythonImportsCheck = [ "jaraco.functools" ];
|
|
|
|
meta = {
|
|
description = "Additional functools in the spirit of stdlib's functools";
|
|
homepage = "https://github.com/jaraco/jaraco.functools";
|
|
changelog = "https://github.com/jaraco/jaraco.functools/blob/v${version}/NEWS.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|