1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 isPy3k, 6 unittestCheckHook, 7}: 8 9let 10 pname = "crccheck"; 11 version = "1.3.0"; 12in 13buildPythonPackage { 14 inherit pname version; 15 format = "setuptools"; 16 17 disabled = !isPy3k; 18 19 src = fetchFromGitHub { 20 owner = "MartinScharrer"; 21 repo = "crccheck"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-nujt3RWupvCtk7gORejtSwqqVjW9VwztOVGXBHW9T+k="; 24 }; 25 26 nativeCheckInputs = [ unittestCheckHook ]; 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}