diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-03-12 15:12:47 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-03-12 18:24:26 +0100 |
commit | e5978e16a106b6ed9076c991a5a8fad902a434a7 (patch) | |
tree | d208f2c37a32f6f428cc62645c2c3dd752e2f1b6 /pkgs/development/python-modules/tdir | |
parent | 1cb49d8e3accc9b8f8410e427c5e5a76f298d8fa (diff) |
python311Packages.tdir: init at 1.8.2
Diffstat (limited to 'pkgs/development/python-modules/tdir')
-rw-r--r-- | pkgs/development/python-modules/tdir/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tdir/default.nix b/pkgs/development/python-modules/tdir/default.nix new file mode 100644 index 0000000000000..644adda75ff0e --- /dev/null +++ b/pkgs/development/python-modules/tdir/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, dek +, xmod +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "tdir"; + version = "1.8.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "rec"; + repo = "tdir"; + rev = "v${version}"; + hash = "sha256-YYQ33Blhqk/CbocqkB9Nh6qbzMjQT07fmzx+fDTvdw8="; + }; + + build-system = [ + poetry-core + ]; + + dependencies = [ + dek + xmod + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "tdir" + ]; + + meta = with lib; { + description = "Create, fill a temporary directory"; + homepage = "https://github.com/rec/tdir"; + changelog = "https://github.com/rec/tdir/blob/${src.rev}/CHANGELOG"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |