nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 unittestCheckHook,
6 setuptools,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "crccheck";
12 version = "1.3.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "MartinScharrer";
17 repo = "crccheck";
18 tag = "v${version}";
19 hash = "sha256-hT+8+moni7turn5MK719b4Xy336htyWWmoMnhgxKkYo=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ unittestCheckHook ];
28
29 pythonImportsCheck = [ "crccheck" ];
30
31 meta = {
32 description = "Python library for CRCs and checksums";
33 homepage = "https://github.com/MartinScharrer/crccheck";
34 changelog = "https://github.com/MartinScharrer/crccheck/releases/tag/${src.tag}";
35 license = lib.licenses.mit;
36 maintainers = [ ];
37 platforms = lib.platforms.linux;
38 };
39}