depot/third_party/nixpkgs/pkgs/development/python-modules/tomlkit/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

37 lines
736 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, enum34
, functools32, typing ? null
, pytestCheckHook
, pyaml
}:
buildPythonPackage rec {
pname = "tomlkit";
version = "0.11.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-YZAfgf9AF5URGc0NHtm3rzHIIdaEXIxHdYe73NXlhU4=";
};
propagatedBuildInputs =
lib.optionals isPy27 [ enum34 functools32 ]
++ lib.optional isPy27 typing;
checkInputs = [
pyaml
pytestCheckHook
];
pythonImportsCheck = [ "tomlkit" ];
meta = with lib; {
homepage = "https://github.com/sdispater/tomlkit";
description = "Style-preserving TOML library for Python";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}