4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
42 lines
892 B
Nix
42 lines
892 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pastedeploy";
|
|
version = "3.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Pylons";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8MNeOcYPEYAfghZN/K/1v/tAAdgz/fCvuVnBoru+81Q=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace " --cov" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"paste.deploy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Load, configure, and compose WSGI applications and servers";
|
|
homepage = "https://github.com/Pylons/pastedeploy";
|
|
changelog = "https://github.com/Pylons/pastedeploy/blob/${version}/docs/news.rst";
|
|
license = licenses.mit;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|