at 23.05-pre 813 B view raw
1{ lib 2, pycryptodome 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "cart"; 11 version = "1.2.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "CybercentreCanada"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "sha256-PsdDlNhX0FbuwS5ZXk9P98DjnzDGdigfnRwrdwYa4qY="; 21 }; 22 23 propagatedBuildInputs = [ 24 pycryptodome 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pytestFlagsArray = [ 32 "unittests" 33 ]; 34 35 pythonImportsCheck = [ 36 "cart" 37 ]; 38 39 meta = with lib; { 40 description = "Python module for the CaRT Neutering format"; 41 homepage = "https://github.com/CybercentreCanada/cart"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}