1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pybind11
6, pytestCheckHook
7, python-dateutil
8, doxygen
9, python
10, pelican
11, matplotlib
12}:
13
14buildPythonPackage rec {
15 pname = "pytomlpp";
16 version = "1.0.6";
17
18 src = fetchFromGitHub {
19 owner = "bobfang1992";
20 repo = pname;
21 rev = "v${version}";
22 fetchSubmodules = true;
23 sha256 = "sha256-QyjIJCSgiSKjqMBvCbOlWYx6rBbKIoDvXez2YnYaPUo=";
24 };
25
26 buildInputs = [ pybind11 ];
27
28 checkInputs = [
29 pytestCheckHook
30
31 python-dateutil
32 doxygen
33 python
34 pelican
35 matplotlib
36 ];
37
38 # pelican requires > 2.7
39 doCheck = !pythonOlder "3.6";
40
41 preCheck = ''
42 cd tests
43 '';
44
45 pythonImportsCheck = [ "pytomlpp" ];
46
47 meta = with lib; {
48 description = "A python wrapper for tomlplusplus";
49 homepage = "https://github.com/bobfang1992/pytomlpp";
50 license = licenses.mit;
51 maintainers = with maintainers; [ evils ];
52 };
53}