nixpkgs/pkgs/development/python-modules/sparklines/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

34 lines
782 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sparklines";
version = "0.4.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "deeplook";
repo = pname;
rev = "v${version}";
sha256 = "1hfxp5c4wbyddy7fgmnda819w3dia3i6gqb2323dr2z016p84r7l";
};
propagatedBuildInputs = [ future ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "sparklines" ];
meta = with lib; {
description = "This Python package implements Edward Tufte's concept of sparklines, but limited to text only";
mainProgram = "sparklines";
homepage = "https://github.com/deeplook/sparklines";
maintainers = with maintainers; [ rhoriguchi ];
license = licenses.gpl3Only;
};
}