2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, flit-core
|
2023-01-11 07:51:40 +00:00
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rkm-codes";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KenKundert";
|
|
|
|
repo = "rkm_codes";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-r4F72iHxH7BoPtgYm1RD6BeSZszKRrpeBQccmT4wzuw=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
flit-core
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
# this has a circular dependency on quantiphy
|
|
|
|
preBuild = ''
|
|
|
|
sed -i '/quantiphy/d' ./setup.py
|
|
|
|
sed -i '/pytest-runner/d' ./setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# this import check will fail as quantiphy is imported by this package
|
|
|
|
# pythonImportsCheck = [ "rkm_codes" ];
|
|
|
|
|
|
|
|
# tests require quantiphy import
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "QuantiPhy support for RKM codes";
|
|
|
|
homepage = "https://github.com/kenkundert/rkm_codes/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jpetrucciani ];
|
|
|
|
};
|
|
|
|
}
|