nixpkgs/pkgs/development/python-modules/pytomlpp/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pybind11
, pytestCheckHook
, python-dateutil
, doxygen
, python
, pelican
, matplotlib
}:
buildPythonPackage rec {
pname = "pytomlpp";
version = "1.0.13";
format = "setuptools";
src = fetchFromGitHub {
owner = "bobfang1992";
repo = pname;
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-QJeXvj1M3Vq5ctmx7RhczONsPRXAecv3WhJgKWtNK+M=";
};
buildInputs = [ pybind11 ];
nativeCheckInputs = [
pytestCheckHook
python-dateutil
doxygen
python
pelican
matplotlib
];
# pelican requires > 2.7
doCheck = !pythonOlder "3.6";
disabledTests = [
# incompatible with pytest7
# https://github.com/bobfang1992/pytomlpp/issues/66
"test_loads_valid_toml_files"
"test_round_trip_for_valid_toml_files"
"test_decode_encode_binary"
];
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 ];
};
}