depot/third_party/nixpkgs/pkgs/development/python-modules/brunt/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

47 lines
831 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "brunt";
version = "1.2.0";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "e704627dc7b9c0a50c67ae90f1d320b14f99f2b2fc9bf1ef0461b141dcf1bce9";
};
postPatch = ''
sed -i '/--cov/d' setup.cfg
'';
propagatedBuildInputs = [
aiohttp
requests
];
nativeCheckInputs = [
pytestCheckHook
];
# tests require Brunt hardware
doCheck = false;
pythonImportsCheck = [ "brunt" ];
meta = {
description = "Unofficial Python SDK for Brunt";
homepage = "https://github.com/eavanvalkenburg/brunt-api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}