blob: 0b41f563fdb4fd977e2d9a39263cb17556d413ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
termcolor,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sparklines";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "deeplook";
repo = "sparklines";
tag = "v${version}";
sha256 = "sha256-jiMrxZMWN+moap0bDH+uy66gF4XdGst9HJpnboJrQm4=";
};
propagatedBuildInputs = [
hatchling
termcolor
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "sparklines" ];
postPatch = ''
export TMPDIR=$PWD/tmp
mkdir -p $TMPDIR
substituteInPlace tests/test_sparkline.py \
--replace-fail "/tmp/" "$TMPDIR/"
'';
meta = {
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 lib.maintainers; [
rhoriguchi
];
license = lib.licenses.mit;
};
}
|