1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, setuptools 6}: 7 8buildPythonPackage rec { 9 pname = "rkm-codes"; 10 version = "0.6"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "KenKundert"; 15 repo = "rkm_codes"; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-CkLLZuWcNL8sqAupc7lHXu0DXUXrX3qwd1g/ekyHdw4="; 18 }; 19 20 nativeBuildInputs = [ 21 flit-core 22 ]; 23 24 propagatedBuildInputs = [ 25 setuptools 26 ]; 27 28 # this has a circular dependency on quantiphy 29 preBuild = '' 30 sed -i '/quantiphy/d' pyproject.toml 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}