1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pastedeploy";
11 version = "3.0.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "Pylons";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-8MNeOcYPEYAfghZN/K/1v/tAAdgz/fCvuVnBoru+81Q=";
21 };
22
23 postPatch = ''
24 substituteInPlace pytest.ini \
25 --replace " --cov" ""
26 '';
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "paste.deploy" ];
31
32 meta = with lib; {
33 description = "Load, configure, and compose WSGI applications and servers";
34 homepage = "https://github.com/Pylons/pastedeploy";
35 changelog = "https://github.com/Pylons/pastedeploy/blob/${version}/docs/news.rst";
36 license = licenses.mit;
37 maintainers = teams.openstack.members;
38 };
39}