mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:44:09 +01:00
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
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paste";
|
|
version = "3.10.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pasteorg";
|
|
repo = "paste";
|
|
tag = version;
|
|
hash = "sha256-NY/h6hbpluEu1XAv3o4mqoG+l0LXfM1dw7+G0Rm1E4o=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs tests/cgiapp_data/
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
setuptools
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
# needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT
|
|
touch tests/urlparser_data/secured.txt
|
|
'';
|
|
|
|
disabledTests = [
|
|
# pkg_resources deprecation warning
|
|
"test_form"
|
|
];
|
|
|
|
pythonNamespaces = [ "paste" ];
|
|
|
|
meta = {
|
|
description = "Tools for using a Web Server Gateway Interface stack";
|
|
homepage = "https://pythonpaste.readthedocs.io/";
|
|
changelog = "https://github.com/pasteorg/paste/blob/${version}/docs/news.txt";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|