1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pastedeploy";
12 version = "3.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "Pylons";
19 repo = "pastedeploy";
20 tag = version;
21 hash = "sha256-yR7UxAeF0fQrbU7tl29GpPeEAc4YcxHdNQWMD67pP3g=";
22 };
23
24 postPatch = ''
25 substituteInPlace pytest.ini \
26 --replace-fail " --cov" ""
27 '';
28
29 build-system = [ setuptools ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "paste.deploy" ];
34
35 meta = {
36 description = "Load, configure, and compose WSGI applications and servers";
37 homepage = "https://github.com/Pylons/pastedeploy";
38 changelog = "https://github.com/Pylons/pastedeploy/blob/${src.tag}/docs/news.rst";
39 license = lib.licenses.mit;
40 teams = [ lib.teams.openstack ];
41 };
42}