Files
nixpkgs/pkgs/development/python-modules/klein/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

75 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# 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;
disabled = pythonOlder "3.7";
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 ];
};
}