2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
digiham,
|
|
|
|
csdr,
|
|
|
|
pycsdr,
|
|
|
|
codecserver,
|
|
|
|
}:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydigiham";
|
|
|
|
version = "0.6.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jketterl";
|
|
|
|
repo = "pydigiham";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-kiEvQl3SuDnHI4Fh97AarsszHGFt7tbWBvBRW84Qv18=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ digiham ];
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
codecserver
|
|
|
|
pycsdr
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
# make pycsdr header files available
|
|
|
|
preBuild = ''
|
|
|
|
ln -s ${pycsdr}/include/${python.libPrefix}/pycsdr src/pycsdr
|
|
|
|
'';
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "digiham" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/jketterl/pydigiham";
|
|
|
|
description = "bindings for the csdr library";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = lib.teams.c3d2.members;
|
|
|
|
};
|
|
|
|
}
|