depot/third_party/nixpkgs/pkgs/development/python-modules/crccheck/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

35 lines
694 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy3k,
unittestCheckHook,
}:
let
pname = "crccheck";
version = "1.3.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "MartinScharrer";
repo = "crccheck";
rev = "refs/tags/v${version}";
hash = "sha256-nujt3RWupvCtk7gORejtSwqqVjW9VwztOVGXBHW9T+k=";
};
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
description = "Python library for CRCs and checksums";
homepage = "https://github.com/MartinScharrer/crccheck";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.linux;
};
}