Merge pull request #237770 from fwc/add-enochecker
enochecker-test: init at 0.9.0
This commit is contained in:
commit
5cd9cccc8e
|
@ -5813,6 +5813,11 @@
|
||||||
githubId = 17859309;
|
githubId = 17859309;
|
||||||
name = "Fuzen";
|
name = "Fuzen";
|
||||||
};
|
};
|
||||||
|
fwc = {
|
||||||
|
github = "fwc";
|
||||||
|
githubId = 29337229;
|
||||||
|
name = "mtths";
|
||||||
|
};
|
||||||
fxfactorial = {
|
fxfactorial = {
|
||||||
email = "edgar.factorial@gmail.com";
|
email = "edgar.factorial@gmail.com";
|
||||||
github = "fxfactorial";
|
github = "fxfactorial";
|
||||||
|
|
35
pkgs/development/python-modules/enochecker-core/default.nix
Normal file
35
pkgs/development/python-modules/enochecker-core/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "enochecker-core";
|
||||||
|
version = "0.10.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = "enochecker_core";
|
||||||
|
hash = "sha256-N41p2XRCp55rcPXLpA4rPIARsva/dQzK8qafjzXtavI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"enochecker_core"
|
||||||
|
];
|
||||||
|
|
||||||
|
# no tests upstream
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Base library for enochecker libs";
|
||||||
|
homepage = "https://github.com/enowars/enochecker_core";
|
||||||
|
changelog = "https://github.com/enowars/enochecker_core/releases/tag/v${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fwc ];
|
||||||
|
};
|
||||||
|
}
|
69
pkgs/development/tools/enochecker-test/default.nix
Normal file
69
pkgs/development/tools/enochecker-test/default.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -618,6 +618,8 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enochecker-test = with python3Packages; callPackage ../development/tools/enochecker-test { };
|
||||||
|
|
||||||
enumer = callPackage ../tools/misc/enumer { };
|
enumer = callPackage ../tools/misc/enumer { };
|
||||||
|
|
||||||
evans = callPackage ../development/tools/evans { };
|
evans = callPackage ../development/tools/evans { };
|
||||||
|
|
|
@ -3350,6 +3350,8 @@ self: super: with self; {
|
||||||
|
|
||||||
enocean = callPackage ../development/python-modules/enocean { };
|
enocean = callPackage ../development/python-modules/enocean { };
|
||||||
|
|
||||||
|
enochecker-core = callPackage ../development/python-modules/enochecker-core { };
|
||||||
|
|
||||||
enrich = callPackage ../development/python-modules/enrich { };
|
enrich = callPackage ../development/python-modules/enrich { };
|
||||||
|
|
||||||
entrance = callPackage ../development/python-modules/entrance {
|
entrance = callPackage ../development/python-modules/entrance {
|
||||||
|
|
Loading…
Reference in a new issue