depot/third_party/nixpkgs/pkgs/development/python-modules/tomli/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
935 B
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchFromGitHub,
flit-core,
unittestCheckHook,
# important downstream dependencies
flit,
black,
mypy,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "tomli";
version = "2.0.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "hukkin";
repo = pname;
rev = version;
hash = "sha256-v0ZMrHIIaGeORwD4JiBeLthmnKZODK5odZVL0SY4etA=";
};
nativeBuildInputs = [ flit-core ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "tomli" ];
passthru.tests = {
# test downstream dependencies
inherit
flit
black
mypy
setuptools-scm
;
};
meta = with lib; {
description = "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 ];
};
}