depot/third_party/nixpkgs/pkgs/development/python-modules/rkm-codes/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

45 lines
978 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, setuptools
}:
buildPythonPackage rec {
pname = "rkm-codes";
version = "0.5";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "rkm_codes";
rev = "v${version}";
hash = "sha256-r4F72iHxH7BoPtgYm1RD6BeSZszKRrpeBQccmT4wzuw=";
};
format = "pyproject";
nativeBuildInputs = [
flit-core
];
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 ];
};
}