diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-07 17:24:57 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-07 17:24:57 +0200 |
commit | 72023476869b9245b9e4f0a558414cce6087341d (patch) | |
tree | ee3cc8078aa11b6fbc1ba9aade6f1735e6d9717b /pkgs/development/python-modules/dissect-volume | |
parent | 6cc8d0b2add5e2adc0701473e0b1473e63217e9c (diff) |
python310Packages.dissect-volume: init at 3.1
Diffstat (limited to 'pkgs/development/python-modules/dissect-volume')
-rw-r--r-- | pkgs/development/python-modules/dissect-volume/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dissect-volume/default.nix b/pkgs/development/python-modules/dissect-volume/default.nix new file mode 100644 index 0000000000000..8e409a846cc3a --- /dev/null +++ b/pkgs/development/python-modules/dissect-volume/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, dissect-cstruct +, dissect-util +, fetchFromGitHub +, setuptools +, setuptools-scm +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "dissect-volume"; + version = "3.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "fox-it"; + repo = "dissect.volume"; + rev = version; + hash = "sha256-9SbluaB2wV4gOCry5c7ZLABMwhGfnYg7dTPdKMXYSZM="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = [ + dissect-cstruct + dissect-util + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "dissect.volume" + ]; + + meta = with lib; { + description = "Dissect module implementing various utility functions for the other Dissect modules"; + homepage = "https://github.com/fox-it/dissect.volume"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} |