Files
nixpkgs/pkgs/development/python-modules/pyaml/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

41 lines
729 B
Nix

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