nixpkgs/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix

55 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, marshmallow
, packaging
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "faraday-agent-parameters-types";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "faraday_agent_parameters_types";
inherit version;
hash = "sha256-XWuWg8PzXdLIuUTZ5dnpFmFmqEhOReqIEmBbCpzdzrg=";
};
propagatedBuildInputs = [
marshmallow
packaging
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner",' ""
'';
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 ];
};
}