Merge pull request #237770 from fwc/add-enochecker

enochecker-test: init at 0.9.0
This commit is contained in:
Sandro 2023-07-24 00:12:12 +02:00 committed by GitHub
commit 5cd9cccc8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 0 deletions

View File

@ -5813,6 +5813,11 @@
githubId = 17859309;
name = "Fuzen";
};
fwc = {
github = "fwc";
githubId = 29337229;
name = "mtths";
};
fxfactorial = {
email = "edgar.factorial@gmail.com";
github = "fxfactorial";

View 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 ];
};
}

View 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 ];
};
}

View File

@ -618,6 +618,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
enochecker-test = with python3Packages; callPackage ../development/tools/enochecker-test { };
enumer = callPackage ../tools/misc/enumer { };
evans = callPackage ../development/tools/evans { };

View File

@ -3350,6 +3350,8 @@ self: super: with self; {
enocean = callPackage ../development/python-modules/enocean { };
enochecker-core = callPackage ../development/python-modules/enochecker-core { };
enrich = callPackage ../development/python-modules/enrich { };
entrance = callPackage ../development/python-modules/entrance {