2021-09-19 14:44:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, crcmod
|
|
|
|
, openpyxl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apycula";
|
2023-06-03 07:45:33 +00:00
|
|
|
version = "0.8.1";
|
2022-03-15 15:15:16 +00:00
|
|
|
format = "setuptools";
|
2021-09-19 14:44:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Apycula";
|
2023-06-03 07:45:33 +00:00
|
|
|
hash = "sha256-IznOt69gzWO/+Snw9YfmDU2CE15IZ+jlPz+ZGfPzK+Q=";
|
2021-09-19 14:44:57 +00:00
|
|
|
};
|
|
|
|
|
2022-03-15 15:15:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-09-19 14:44:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
crcmod
|
|
|
|
openpyxl
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require a physical FPGA
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-03-15 15:15:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apycula"
|
|
|
|
];
|
2021-09-19 14:44:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Source tools for Gowin FPGAs";
|
|
|
|
homepage = "https://github.com/YosysHQ/apicula";
|
2023-06-03 09:13:40 +00:00
|
|
|
changelog = "https://github.com/YosysHQ/apicula/releases/tag/${version}";
|
2021-09-19 14:44:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ newam ];
|
|
|
|
};
|
|
|
|
}
|