python3Packages.pyinfra-testgen: init at 0.1.1
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
uv-build,
|
||||
pyyaml,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyinfra-testgen";
|
||||
version = "0.1.1";
|
||||
pyproject = true;
|
||||
|
||||
# no tags on GitHub
|
||||
src = fetchPypi {
|
||||
pname = "pyinfra_testgen";
|
||||
inherit version;
|
||||
hash = "sha256-c5pZ0SfRXC50vJZfnnf0HQgImf7hi2oQ5/XKMVNzlpc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "uv_build>=0.8.14,<0.9.0" uv_build
|
||||
'';
|
||||
|
||||
build-system = [ uv-build ];
|
||||
|
||||
dependencies = [
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "testgen" ];
|
||||
|
||||
# upstream has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Generate Python unit tests from JSON and YAML files";
|
||||
homepage = "https://github.com/pyinfra-dev/testgen";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -13627,6 +13627,8 @@ self: super: with self; {
|
||||
|
||||
pyinfra = callPackage ../development/python-modules/pyinfra { };
|
||||
|
||||
pyinfra-testgen = callPackage ../development/python-modules/pyinfra-testgen { };
|
||||
|
||||
pyinotify = callPackage ../development/python-modules/pyinotify { };
|
||||
|
||||
pyinputevent = callPackage ../development/python-modules/pyinputevent { };
|
||||
|
||||
Reference in New Issue
Block a user