python311Packages.klein: 2022-06-26 -> 2023-09-05
Bumping past the latest release, because it is incompatible with our hypothesis version.
This commit is contained in:
@@ -1,35 +1,46 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hyperlink
|
||||
, hypothesis
|
||||
, incremental
|
||||
, python
|
||||
, pythonOlder
|
||||
, treq
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
, wheel
|
||||
|
||||
# dependencies
|
||||
, attrs
|
||||
, hyperlink
|
||||
, incremental
|
||||
, tubes
|
||||
, twisted
|
||||
, typing-extensions
|
||||
, werkzeug
|
||||
, zope_interface
|
||||
|
||||
# tests
|
||||
, idna
|
||||
, python
|
||||
, treq
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "klein";
|
||||
version = "unstable-2022-06-26";
|
||||
format = "setuptools";
|
||||
version = "unstable-2023-09-05";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twisted";
|
||||
repo = pname;
|
||||
rev = "d8c2b92a3c77aa64c596696fb6f07172ecf94a74";
|
||||
hash = "sha256-RDZqavkteUbARV78OctZtLIrE4RoYDVAanjwE5i/ZeM=";
|
||||
rev = "44b356ede27a667252ae5392014c802f0492c017";
|
||||
hash = "sha256-zHdyyx5IseFWr25BGLL0dDM8/5BDehsvbxIci+DEo9s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
hyperlink
|
||||
@@ -38,17 +49,17 @@ buildPythonPackage rec {
|
||||
tubes
|
||||
werkzeug
|
||||
zope_interface
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
hypothesis
|
||||
idna
|
||||
treq
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m twisted.trial klein
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
@@ -56,6 +67,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/twisted/klein/releases/tag/${version}";
|
||||
description = "Klein Web Micro-Framework";
|
||||
homepage = "https://github.com/twisted/klein";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user