2021-10-08 15:17:17 +00:00
|
|
|
{ lib
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, chardet
|
|
|
|
, fetchFromGitHub
|
|
|
|
, idna
|
|
|
|
, iniconfig
|
|
|
|
, more-itertools
|
|
|
|
, packaging
|
|
|
|
, pluggy
|
|
|
|
, py
|
|
|
|
, pyparsing
|
|
|
|
, python-slugify
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, text-unidecode
|
|
|
|
, toml
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patrowl4py";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.1.9";
|
2021-10-08 15:17:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Patrowl";
|
|
|
|
repo = "Patrowl4py";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-ZGvntLbXIWmL0WoT+kQoNT6gDPgsSKwHQQjYlarvnKo=";
|
2021-10-08 15:17:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
certifi
|
|
|
|
chardet
|
|
|
|
idna
|
|
|
|
iniconfig
|
|
|
|
more-itertools
|
|
|
|
packaging
|
|
|
|
pluggy
|
|
|
|
py
|
|
|
|
pyparsing
|
|
|
|
python-slugify
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
text-unidecode
|
|
|
|
toml
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"patrowl4py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API Client for PatrOwl";
|
|
|
|
homepage = "https://github.com/Patrowl/Patrowl4py";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|