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