diff --git a/pkgs/development/python-modules/pyinfra-testgen/default.nix b/pkgs/development/python-modules/pyinfra-testgen/default.nix new file mode 100644 index 000000000000..9a426e492ca6 --- /dev/null +++ b/pkgs/development/python-modules/pyinfra-testgen/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a2bbbc404c6b..d03660996f71 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };