1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, unittestCheckHook
6}:
7
8let
9 pname = "crccheck";
10 version = "1.3.0";
11in buildPythonPackage {
12 inherit pname version;
13 format = "setuptools";
14
15 disabled = !isPy3k;
16
17 src = fetchFromGitHub {
18 owner = "MartinScharrer";
19 repo = "crccheck";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-nujt3RWupvCtk7gORejtSwqqVjW9VwztOVGXBHW9T+k=";
22 };
23
24 nativeCheckInputs = [
25 unittestCheckHook
26 ];
27
28 meta = with lib; {
29 description = "Python library for CRCs and checksums";
30 homepage = "https://github.com/MartinScharrer/crccheck";
31 license = licenses.mit;
32 maintainers = with maintainers; [ ];
33 platforms = platforms.linux;
34 };
35}