blob: 19edd7057eb4e26986a59d3a3c3468dd0085748b (
plain) (
blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pybind11
, pytestCheckHook
, dateutil
, doxygen
, python
, pelican
, matplotlib
}:
buildPythonPackage rec {
pname = "pytomlpp";
version = "0.3.5";
src = fetchFromGitHub {
owner = "bobfang1992";
repo = pname;
rev = version;
fetchSubmodules = true;
sha256 = "1h06a2r0f5q4mml485113mn7a7585zmhqsk2p1apcybyydllcqda";
};
buildInputs = [ pybind11 ];
checkInputs = [
pytestCheckHook
dateutil
doxygen
python
pelican
matplotlib
];
# pelican requires > 2.7
doCheck = !pythonOlder "3.6";
preCheck = ''
cd tests
'';
pythonImportsCheck = [ "pytomlpp" ];
meta = with lib; {
description = "A python wrapper for tomlplusplus";
homepage = "https://github.com/bobfang1992/pytomlpp";
license = licenses.mit;
maintainers = with maintainers; [ evils ];
};
}
|