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
72 lines
1.1 KiB
Nix
72 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
attrs,
|
|
hyperlink,
|
|
incremental,
|
|
tubes,
|
|
twisted,
|
|
werkzeug,
|
|
zope-interface,
|
|
|
|
# tests
|
|
idna,
|
|
python,
|
|
treq,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "klein";
|
|
version = "24.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twisted";
|
|
repo = "klein";
|
|
tag = version;
|
|
hash = "sha256-2/zl4fS9ZP73quPmGnz2+brEt84ODgVS89Om/cUsj0M=";
|
|
};
|
|
|
|
build-system = [
|
|
incremental
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
hyperlink
|
|
incremental
|
|
twisted
|
|
tubes
|
|
werkzeug
|
|
zope-interface
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
idna
|
|
treq
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} -m twisted.trial klein
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "klein" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/twisted/klein/releases/tag/${version}";
|
|
description = "Klein Web Micro-Framework";
|
|
homepage = "https://github.com/twisted/klein";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ exarkun ];
|
|
};
|
|
}
|