blob: 13581602bc2cadbf1e8589fff6a5d441917fb3f6 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
marshmallow,
packaging,
pytestCheckHook,
setuptools,
validators,
}:
buildPythonPackage rec {
pname = "faraday-agent-parameters-types";
version = "1.8.1";
pyproject = true;
src = fetchPypi {
pname = "faraday_agent_parameters_types";
inherit version;
hash = "sha256-o4N1op+beeoM0GGtcQGWNfFt6SMDohiNnOyD8lWzuk0=";
};
pythonRelaxDeps = [ "validators" ];
postPatch = ''
substituteInPlace setup.py \
--replace-warn '"pytest-runner",' ""
'';
build-system = [ setuptools ];
dependencies = [
marshmallow
packaging
validators
];
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 = {
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 = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}
|