blob: d943720fc55eb01ade7c1a648025fc204ab59362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyftdi,
setuptools,
}:
buildPythonPackage rec {
pname = "pyspiflash";
version = "0.6.5";
pyproject = true;
src = fetchFromGitHub {
owner = "eblot";
repo = "pyspiflash";
tag = "v${version}";
hash = "sha256-NXYXvGSRhsTHu10pDYaZF84+d4QyPKECpuKpmgFstg0=";
};
build-system = [ setuptools ];
dependencies = [ pyftdi ];
# tests are not shipped with the PyPI source
doCheck = false;
pythonImportsCheck = [ "spiflash" ];
meta = {
description = "SPI data flash device drivers in Python";
homepage = "https://github.com/eblot/pyspiflash";
changelog = "https://github.com/eblot/pyspiflash/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|