depot/third_party/nixpkgs/pkgs/development/python-modules/pydigiham/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

31 lines
814 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, python, digiham, csdr, pycsdr, codecserver }:
buildPythonPackage rec {
pname = "pydigiham";
version = "0.6.0";
src = fetchFromGitHub {
owner = "jketterl";
repo = "pydigiham";
rev = version;
sha256 = "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;
};
}