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 rev = "refs/tags/${version}";
21 hash = "sha256-8MNeOcYPEYAfghZN/K/1v/tAAdgz/fCvuVnBoru+81Q=";
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 = with lib; {
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/${version}/docs/news.rst";
39 license = licenses.mit;
40 maintainers = teams.openstack.members;
41 };
42}