depot/third_party/nixpkgs/pkgs/development/python-modules/pydigiham/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

43 lines
856 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
digiham,
pycsdr,
codecserver,
}:
buildPythonPackage rec {
pname = "pydigiham";
version = "0.6.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "jketterl";
repo = "pydigiham";
rev = version;
hash = "sha256-kiEvQl3SuDnHI4Fh97AarsszHGFt7tbWBvBRW84Qv18=";
};
propagatedBuildInputs = [ digiham ];
buildInputs = [
codecserver
pycsdr
];
# 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;
};
}