1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest,
6 future,
7 pyparsing,
8}:
9
10buildPythonPackage {
11 pname = "kinparse";
12 version = "unstable-2019-12-18";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "xesscorp";
17 repo = "kinparse";
18 rev = "eeb3f346d57a67a471bdf111f39bef8932644481";
19 sha256 = "1nrjnybwzy93c79yylcwmb4lvkx7hixavnjwffslz0zwn32l0kx3";
20 };
21
22 doCheck = true;
23 pythonImportsCheck = [ "kinparse" ];
24
25 nativeCheckInputs = [ pytest ];
26
27 propagatedBuildInputs = [
28 future
29 pyparsing
30 ];
31
32 meta = with lib; {
33 description = "Parser for KiCad EESCHEMA netlists";
34 mainProgram = "kinparse";
35 homepage = "https://github.com/xesscorp/kinparse";
36 license = licenses.mit;
37 maintainers = with maintainers; [ matthuszagh ];
38 };
39}