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