1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # build-system
8 cython,
9 poetry-core,
10 setuptools,
11
12 # checks
13 pytestCheckHook,
14 pytest-cov-stub,
15}:
16
17buildPythonPackage rec {
18 pname = "convertertools";
19 version = "0.6.1";
20 pyproject = true;
21
22 disabled = pythonOlder "3.10";
23
24 src = fetchFromGitHub {
25 owner = "bluetooth-devices";
26 repo = "convertertools";
27 tag = "v${version}";
28 hash = "sha256-Oy1Nf/mS2Lr2N7OB27QDlW+uuhafib2kolEXzXLppWU=";
29 };
30
31 build-system = [
32 cython
33 poetry-core
34 setuptools
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-cov-stub
40 ];
41
42 pythonImportsCheck = [ "convertertools" ];
43
44 meta = with lib; {
45 description = "Tools for converting python data types";
46 homepage = "https://github.com/bluetooth-devices/convertertools";
47 changelog = "https://github.com/bluetooth-devices/convertertools/blob/${src.tag}/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = [ ];
50 };
51}