python3.pkgs.pytomlpp: init at 0.3.5
This commit is contained in:
parent
8c52ec99a2
commit
0e13b2c44e
53
pkgs/development/python-modules/pytomlpp/default.nix
Normal file
53
pkgs/development/python-modules/pytomlpp/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
@ -6728,6 +6728,8 @@ in {
|
||||
|
||||
pytoml = callPackage ../development/python-modules/pytoml { };
|
||||
|
||||
pytomlpp = callPackage ../development/python-modules/pytomlpp { };
|
||||
|
||||
pytools = callPackage ../development/python-modules/pytools { };
|
||||
|
||||
pytorch = callPackage ../development/python-modules/pytorch {
|
||||
|
Loading…
Reference in New Issue
Block a user