3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/robotframework-requests/default.nix
Fabian Affolter ea809481a4
python310Packages.robotframework-requests: add pythonImportsCheck
- disable on older Python releases
- run tests
2022-10-30 18:44:24 +01:00

50 lines
917 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytestCheckHook
, pythonOlder
, requests
, robotframework
}:
buildPythonPackage rec {
pname = "robotframework-requests";
version = "0.9.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MarketSquare";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-XjcR29dH9K9XEnJZlQ4UUDI1MG92dRO1puiB6fcN58k=";
};
propagatedBuildInputs = [
lxml
requests
robotframework
];
buildInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"RequestsLibrary"
];
pytestFlagsArray = [
"utests"
];
meta = with lib; {
description = "Robot Framework keyword library wrapper around the HTTP client library requests";
homepage = "https://github.com/bulkan/robotframework-requests";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}