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}:
15
16buildPythonPackage rec {
17 pname = "convertertools";
18 version = "0.5.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.10";
22
23 src = fetchFromGitHub {
24 owner = "bluetooth-devices";
25 repo = "convertertools";
26 rev = "v${version}";
27 hash = "sha256-g4dSJjogMBC8wqvbYDjDP6YihxuG7PQn/jwrrBFOt80=";
28 };
29
30 postPatch = ''
31 sed -i "/--cov/d" pyproject.toml
32 '';
33
34 build-system = [
35 cython
36 poetry-core
37 setuptools
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
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.rev}/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = [ ];
50 };
51}