about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/hsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/hsh/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/hsh/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/hsh/default.nix b/nixpkgs/pkgs/development/python-modules/hsh/default.nix
new file mode 100644
index 000000000000..0b724c03d089
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/hsh/default.nix
@@ -0,0 +1,50 @@
+{
+  buildPythonPackage,
+  fetchFromGitHub,
+  lib,
+  commandlines,
+  unittestCheckHook,
+  pexpect,
+  naked,
+  nix-update-script,
+  setuptools,
+  wheel,
+}:
+
+buildPythonPackage rec {
+  pname = "hsh";
+  version = "1.1.0";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "chrissimpkins";
+    repo = "hsh";
+    rev = "v${version}";
+    hash = "sha256-bAAytoidFHH2dSXqN9aqBd2H4p/rwTWXIZa1t5Djdz0=";
+  };
+
+  propagatedBuildInputs = [ commandlines ];
+
+  nativeBuildInputs = [
+    setuptools
+    wheel
+  ];
+
+  nativeCheckInputs = [
+    unittestCheckHook
+    pexpect
+    naked
+  ];
+
+  preCheck = "cd tests";
+
+  pythonImportsCheck = [ "hsh" ];
+
+  meta = with lib; {
+    description = "Cross-platform command line application that generates file hash digests and performs file integrity checks via file hash digest comparisons";
+    homepage = "https://github.com/chrissimpkins/hsh";
+    downloadPage = "https://github.com/chrissimpkins/hsh/releases";
+    license = licenses.mit;
+    maintainers = [ maintainers.lucasew ];
+  };
+}