nixpkgs/pkgs/development/compilers/lesscpy/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

25 lines
728 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "lesscpy";
version = "0.15.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-EEXRepj2iGRsp1jf8lTm6cA3RWSOBRoIGwOVw7d8gkw=";
};
checkInputs = with python3Packages; [ pytestCheckHook ];
pythonImportsCheck = [ "lesscpy" ];
propagatedBuildInputs = with python3Packages; [ ply six ];
doCheck = false; # Really weird test failures (`nix-build-python2.css not found`)
meta = with lib; {
description = "Python LESS Compiler";
mainProgram = "lesscpy";
homepage = "https://github.com/lesscpy/lesscpy";
license = licenses.mit;
maintainers = with maintainers; [ s1341 ];
};
}