nixpkgs/pkgs/development/python-modules/misaka/default.nix
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

26 lines
651 B
Nix

{ lib, fetchPypi, buildPythonPackage, cffi }:
buildPythonPackage rec {
pname = "misaka";
version = "2.1.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2";
};
propagatedNativeBuildInputs = [ cffi ];
propagatedBuildInputs = [ cffi ];
# The tests require write access to $out
doCheck = false;
meta = with lib; {
description = "A CFFI binding for Hoedown, a markdown parsing library";
mainProgram = "misaka";
homepage = "https://misaka.61924.nl";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
};
}