51 lines
829 B
Nix
51 lines
829 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, numpy
|
|
, pandas
|
|
, pillow
|
|
, crcmod
|
|
, openpyxl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apycula";
|
|
version = "0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "Apycula";
|
|
hash = "sha256-+GVXmqoF9r/GPv2S7KP+PTS2WTeubhLBNaA9MXw5lRo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
pandas
|
|
pillow
|
|
crcmod
|
|
openpyxl
|
|
];
|
|
|
|
# tests require a physical FPGA
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"apycula"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Open Source tools for Gowin FPGAs";
|
|
homepage = "https://github.com/YosysHQ/apicula";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ newam ];
|
|
};
|
|
}
|