mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-20 23:10:19 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
39 lines
825 B
Nix
39 lines
825 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, enum34
|
|
, functools32, typing ? null
|
|
, pytestCheckHook
|
|
, pyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tomlkit";
|
|
version = "0.11.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cblS5XIWiJN/sCz501TbzweFBmFJ0oVeRFMevdK2XXM=";
|
|
};
|
|
|
|
propagatedBuildInputs =
|
|
lib.optionals isPy27 [ enum34 functools32 ]
|
|
++ lib.optional isPy27 typing;
|
|
|
|
nativeCheckInputs = [
|
|
pyaml
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "tomlkit" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/sdispater/tomlkit";
|
|
changelog = "https://github.com/sdispater/tomlkit/blob/${version}/CHANGELOG.md";
|
|
description = "Style-preserving TOML library for Python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
};
|
|
}
|