1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flitBuildHook
5, setuptools
6}:
7
8buildPythonPackage rec {
9 pname = "rkm-codes";
10 version = "0.5";
11
12 src = fetchFromGitHub {
13 owner = "KenKundert";
14 repo = "rkm_codes";
15 rev = "v${version}";
16 hash = "sha256-r4F72iHxH7BoPtgYm1RD6BeSZszKRrpeBQccmT4wzuw=";
17 };
18
19 format = "pyproject";
20 nativeBuildInputs = [
21 flitBuildHook
22 ];
23 propagatedBuildInputs = [
24 setuptools
25 ];
26
27 # this has a circular dependency on quantiphy
28 preBuild = ''
29 sed -i '/quantiphy/d' ./setup.py
30 sed -i '/pytest-runner/d' ./setup.py
31 '';
32
33 # this import check will fail as quantiphy is imported by this package
34 # pythonImportsCheck = [ "rkm_codes" ];
35
36 # tests require quantiphy import
37 doCheck = false;
38
39 meta = with lib; {
40 description = "QuantiPhy support for RKM codes";
41 homepage = "https://github.com/kenkundert/rkm_codes/";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ jpetrucciani ];
44 };
45}