1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 poetry-core, 7 pytestCheckHook, 8 pytest-cov-stub, 9 setuptools, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "kasa-crypt"; 15 version = "0.6.3"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "bdraco"; 22 repo = "kasa-crypt"; 23 tag = "v${version}"; 24 hash = "sha256-PQycv0JHXKIEzuKVnXoyuU/BfKG19r3eDE4rYDiYYaY="; 25 }; 26 27 build-system = [ 28 cython 29 poetry-core 30 setuptools 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-cov-stub 36 ]; 37 38 pythonImportsCheck = [ "kasa_crypt" ]; 39 40 meta = with lib; { 41 description = "Fast kasa crypt"; 42 homepage = "https://github.com/bdraco/kasa-crypt"; 43 changelog = "https://github.com/bdraco/kasa-crypt/blob/${src.tag}/CHANGELOG.md"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}