pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / faraday-agent-parameters-types / default.nix
blob0eec5c5cb6e0dde62a72b63c65786789dda83a11
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   marshmallow,
6   packaging,
7   pytestCheckHook,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "faraday-agent-parameters-types";
14   version = "1.7.2";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     pname = "faraday_agent_parameters_types";
21     inherit version;
22     hash = "sha256-9+scGbRITK25XLJOMsMzPj/y5Wi05mB0dcXDhon9Cf4=";
23   };
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace-warn '"pytest-runner",' ""
28   '';
30   build-system = [ setuptools ];
32   dependencies = [
33     marshmallow
34     packaging
35   ];
37   nativeCheckInputs = [ pytestCheckHook ];
39   pythonImportsCheck = [
40     "faraday_agent_parameters_types"
41     "faraday_agent_parameters_types.utils"
42   ];
44   disabledTests = [
45     # assert 'Version requested not valid' in "Invalid version: 'hola'"
46     "test_incorrect_version_requested"
47   ];
49   meta = with lib; {
50     description = "Collection of Faraday agent parameters types";
51     homepage = "https://github.com/infobyte/faraday_agent_parameters_types";
52     changelog = "https://github.com/infobyte/faraday_agent_parameters_types/blob/${version}/CHANGELOG.md";
53     license = licenses.gpl3Plus;
54     maintainers = with maintainers; [ fab ];
55   };