diff options
Diffstat (limited to 'pkgs/development/tools/enochecker-test/default.nix')
-rw-r--r-- | pkgs/development/tools/enochecker-test/default.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/development/tools/enochecker-test/default.nix b/pkgs/development/tools/enochecker-test/default.nix new file mode 100644 index 0000000000000..ae1fb411861a1 --- /dev/null +++ b/pkgs/development/tools/enochecker-test/default.nix @@ -0,0 +1,69 @@ +{ lib +, buildPythonApplication +, fetchPypi +, pythonOlder +, pythonRelaxDepsHook + +, certifi +, charset-normalizer +, enochecker-core +, exceptiongroup +, idna +, iniconfig +, jsons +, packaging +, pluggy +, pytest +, requests +, tomli +, typish +, urllib3 +}: + +buildPythonApplication rec { + pname = "enochecker-test"; + version = "0.9.0"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit version; + pname = "enochecker_test"; + hash = "sha256-M0RTstFePU7O51YVEncVDuuR6F7R8mfdKbO0j7k/o8Q="; + }; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = true; + + propagatedBuildInputs = [ + certifi + charset-normalizer + enochecker-core + exceptiongroup + idna + iniconfig + jsons + packaging + pluggy + pytest + requests + tomli + typish + urllib3 + ]; + + # tests require network access + doCheck = false; + + meta = with lib; { + description = "Automatically test services/checker using the enochecker API"; + homepage = "https://github.com/enowars/enochecker_test"; + changelog = "https://github.com/enowars/enochecker_test/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fwc ]; + }; +} |