a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
35 lines
711 B
Nix
35 lines
711 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 = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|