blob: 99df6317604e3b394f0fdb7307db4d41e1b38896 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, buildPythonPackage
, fetchPypi
, marshmallow
, packaging
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "faraday-agent-parameters-types";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "faraday_agent_parameters_types";
inherit version;
hash = "sha256-Txw7fXDnuFB9fTETkMhEgjOsjllPQB8IEG3lN3Yj/4k=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-warn '"pytest-runner",' ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
marshmallow
packaging
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"faraday_agent_parameters_types"
"faraday_agent_parameters_types.utils"
];
disabledTests = [
# assert 'Version requested not valid' in "Invalid version: 'hola'"
"test_incorrect_version_requested"
];
meta = with lib; {
description = "Collection of Faraday agent parameters types";
homepage = "https://github.com/infobyte/faraday_agent_parameters_types";
changelog = "https://github.com/infobyte/faraday_agent_parameters_types/blob/${version}/CHANGELOG.md";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}
|