1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, setuptools-scm
6, numpy
7, pandas
8, pillow
9, crcmod
10, openpyxl
11}:
12
13buildPythonPackage rec {
14 pname = "apycula";
15 version = "0.9.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit version;
22 pname = "Apycula";
23 hash = "sha256-9THKebhyoUUSnZek1uBIFckFM0Xh1fKRpxEt5Eptugw=";
24 };
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 propagatedBuildInputs = [
31 numpy
32 pandas
33 pillow
34 crcmod
35 openpyxl
36 ];
37
38 # tests require a physical FPGA
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "apycula"
43 ];
44
45 meta = with lib; {
46 description = "Open Source tools for Gowin FPGAs";
47 homepage = "https://github.com/YosysHQ/apicula";
48 changelog = "https://github.com/YosysHQ/apicula/releases/tag/${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ newam ];
51 };
52}