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