2021-09-19 15:44:57 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, crcmod
|
|
|
|
, openpyxl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apycula";
|
2022-06-17 12:15:57 +01:00
|
|
|
version = "0.4";
|
2022-03-15 15:15:16 +00:00
|
|
|
format = "setuptools";
|
2021-09-19 15:44:57 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Apycula";
|
2022-06-17 12:15:57 +01:00
|
|
|
hash = "sha256-+GVXmqoF9r/GPv2S7KP+PTS2WTeubhLBNaA9MXw5lRo=";
|
2021-09-19 15:44:57 +01:00
|
|
|
};
|
|
|
|
|
2022-03-15 15:15:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-09-19 15:44:57 +01: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 15:44:57 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open Source tools for Gowin FPGAs";
|
|
|
|
homepage = "https://github.com/YosysHQ/apicula";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ newam ];
|
|
|
|
};
|
|
|
|
}
|