at 24.11-pre 1.0 kB view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 commandlines, 6 unittestCheckHook, 7 pexpect, 8 naked, 9 nix-update-script, 10 setuptools, 11 wheel, 12}: 13 14buildPythonPackage rec { 15 pname = "hsh"; 16 version = "1.1.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "chrissimpkins"; 21 repo = "hsh"; 22 rev = "v${version}"; 23 hash = "sha256-bAAytoidFHH2dSXqN9aqBd2H4p/rwTWXIZa1t5Djdz0="; 24 }; 25 26 propagatedBuildInputs = [ commandlines ]; 27 28 nativeBuildInputs = [ 29 setuptools 30 wheel 31 ]; 32 33 nativeCheckInputs = [ 34 unittestCheckHook 35 pexpect 36 naked 37 ]; 38 39 preCheck = "cd tests"; 40 41 pythonImportsCheck = [ "hsh" ]; 42 43 meta = with lib; { 44 description = "Cross-platform command line application that generates file hash digests and performs file integrity checks via file hash digest comparisons"; 45 homepage = "https://github.com/chrissimpkins/hsh"; 46 downloadPage = "https://github.com/chrissimpkins/hsh/releases"; 47 license = licenses.mit; 48 maintainers = [ maintainers.lucasew ]; 49 }; 50}