depot/third_party/nixpkgs/pkgs/development/python-modules/tomlkit/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

37 lines
736 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, enum34
, functools32, typing ? null
, pytestCheckHook
, pyaml
}:
buildPythonPackage rec {
pname = "tomlkit";
version = "0.11.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MjWpAQ+uVDI+cnw6wG+3IHUv5mNbNCbjedrsYPvUSoM=";
};
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 ];
};
}