Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / faraday-agent-parameters-types / default.nix
blobb906a22bea57232220db2188d295d5cedd6d8645
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , marshmallow
5 , packaging
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "faraday-agent-parameters-types";
13   version = "1.5.1";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     pname = "faraday_agent_parameters_types";
20     inherit version;
21     hash = "sha256-Bh1s0IeUEa4EnGElQn5ruBxFSbcOqsrDqbw1nVjdi5s=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace-warn '"pytest-runner",' ""
27   '';
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     marshmallow
35     packaging
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [
43     "faraday_agent_parameters_types"
44     "faraday_agent_parameters_types.utils"
45   ];
47   disabledTests = [
48     # assert 'Version requested not valid' in "Invalid version: 'hola'"
49     "test_incorrect_version_requested"
50   ];
52   meta = with lib; {
53     description = "Collection of Faraday agent parameters types";
54     homepage = "https://github.com/infobyte/faraday_agent_parameters_types";
55     changelog = "https://github.com/infobyte/faraday_agent_parameters_types/blob/${version}/CHANGELOG.md";
56     license = with licenses; [ gpl3Plus ];
57     maintainers = with maintainers; [ fab ];
58   };