nixpkgs/pkgs/development/python-modules/pytomlpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
917 B
Nix
Raw Normal View History

2020-09-05 13:06:13 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pybind11
, pytestCheckHook
, python-dateutil
2020-09-05 13:06:13 +00:00
, doxygen
, python
, pelican
, matplotlib
}:
buildPythonPackage rec {
pname = "pytomlpp";
2021-05-23 18:46:08 +00:00
version = "1.0.6";
2020-09-05 13:06:13 +00:00
src = fetchFromGitHub {
owner = "bobfang1992";
repo = pname;
2021-05-23 18:46:08 +00:00
rev = "v${version}";
2020-09-05 13:06:13 +00:00
fetchSubmodules = true;
2021-05-23 18:46:08 +00:00
sha256 = "sha256-QyjIJCSgiSKjqMBvCbOlWYx6rBbKIoDvXez2YnYaPUo=";
2020-09-05 13:06:13 +00:00
};
buildInputs = [ pybind11 ];
checkInputs = [
pytestCheckHook
python-dateutil
2020-09-05 13:06:13 +00:00
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 ];
};
}