nixpkgs/pkgs/development/python-modules/pyaml/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

34 lines
639 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, unidecode
}:
buildPythonPackage rec {
pname = "pyaml";
version = "21.10.1";
src = fetchPypi {
inherit pname version;
sha256 = "c6519fee13bf06e3bb3f20cacdea8eba9140385a7c2546df5dbae4887f768383";
};
propagatedBuildInputs = [
pyyaml
];
nativeCheckInputs = [
unidecode
];
pythonImportsCheck = [ "pyaml" ];
meta = with lib; {
description = "PyYAML-based module to produce pretty and readable YAML-serialized data";
homepage = "https://github.com/mk-fg/pretty-yaml";
license = licenses.wtfpl;
maintainers = with maintainers; [ ];
};
}