1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pastedeploy";
10 version = "3.0.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "Pylons";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-8MNeOcYPEYAfghZN/K/1v/tAAdgz/fCvuVnBoru+81Q=";
20 };
21
22 postPatch = ''
23 substituteInPlace pytest.ini \
24 --replace " --cov" ""
25 '';
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "paste.deploy"
33 ];
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}