2021-09-19 16:44:57 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, crcmod
|
|
|
|
, openpyxl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apycula";
|
2021-12-02 21:05:39 +01:00
|
|
|
version = "0.0.1a12";
|
2021-09-19 16:44:57 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Apycula";
|
2021-12-02 21:05:39 +01:00
|
|
|
hash = "sha256-TFb1C1GaMAK+ckEeXDxSyO2Cgx5dmq62daoSnAiAFmI=";
|
2021-09-19 16:44:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|