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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.6";
|
|
|
|
format = "pyproject";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KenKundert";
|
|
|
|
repo = "rkm_codes";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CkLLZuWcNL8sqAupc7lHXu0DXUXrX3qwd1g/ekyHdw4=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
flit-core
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
# this has a circular dependency on quantiphy
|
|
|
|
preBuild = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
sed -i '/quantiphy/d' pyproject.toml
|
2023-01-11 07:51:40 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|