Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytomlpp / default.nix
blobeb25af828278200f7b7bf92da8e5c5ac752392c6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pybind11
6 , pytestCheckHook
7 , python-dateutil
8 , doxygen
9 , python
10 , pelican
11 , matplotlib
14 buildPythonPackage rec {
15   pname = "pytomlpp";
16   version = "1.0.13";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "bobfang1992";
21     repo = pname;
22     rev = "v${version}";
23     fetchSubmodules = true;
24     hash = "sha256-QJeXvj1M3Vq5ctmx7RhczONsPRXAecv3WhJgKWtNK+M=";
25   };
27   buildInputs = [ pybind11 ];
29   nativeCheckInputs = [
30     pytestCheckHook
32     python-dateutil
33     doxygen
34     python
35     pelican
36     matplotlib
37   ];
39   # pelican requires > 2.7
40   doCheck = !pythonOlder "3.6";
42   disabledTests = [
43     # incompatible with pytest7
44     # https://github.com/bobfang1992/pytomlpp/issues/66
45     "test_loads_valid_toml_files"
46     "test_round_trip_for_valid_toml_files"
47     "test_decode_encode_binary"
48   ];
50   preCheck = ''
51     cd tests
52   '';
54   pythonImportsCheck = [ "pytomlpp" ];
56   meta = with lib; {
57     description = "A python wrapper for tomlplusplus";
58     homepage = "https://github.com/bobfang1992/pytomlpp";
59     license = licenses.mit;
60     maintainers = with maintainers; [ evils ];
61   };