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

37 lines
733 B
Nix
Raw Normal View History

2021-07-19 15:39:43 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, python-dateutil
}:
buildPythonPackage rec {
pname = "tomli";
2021-07-25 21:21:31 +01:00
version = "1.1.0";
2021-07-19 15:39:43 +01:00
format = "pyproject";
src = fetchFromGitHub {
owner = "hukkin";
repo = pname;
rev = version;
2021-07-25 21:21:31 +01:00
sha256 = "1cj6iil9sii1zl0l4pw7h4alcnhwdbxinpph2f0rm5rghrp6prjm";
2021-07-19 15:39:43 +01:00
};
nativeBuildInputs = [ flit-core ];
checkInputs = [
pytestCheckHook
python-dateutil
];
pythonImportsCheck = [ "tomli" ];
meta = with lib; {
description = "A Python library for parsing TOML, fully compatible with TOML v1.0.0";
homepage = "https://github.com/hukkin/tomli";
license = licenses.mit;
maintainers = with maintainers; [ veehaitch ];
};
}