mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #212407 from NobbZ/hledger-utils
hledger-utils: init at 1.12.1 (also init so far unpackaged dependencies)
This commit is contained in:
commit
4c4b377a23
30
pkgs/development/python-modules/drawille/default.nix
Normal file
30
pkgs/development/python-modules/drawille/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drawille";
|
||||
version = "0.1.0";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-t4nS8TWbEGKHibIbLfZZycPQxTiEzuJ7DYsa6Twi+8s=";
|
||||
};
|
||||
|
||||
doCheck = false; # pypi package has no tests, git has no tags
|
||||
|
||||
pythonImportsCheck = [
|
||||
"drawille"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Drawing in terminal with unicode braille characters";
|
||||
homepage = "https://github.com/asciimoo/drawille";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ nobbz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
37
pkgs/development/python-modules/drawilleplot/default.nix
Normal file
37
pkgs/development/python-modules/drawilleplot/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, drawille
|
||||
, matplotlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drawilleplot";
|
||||
version = "0.1.0";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ZEDroo7KkI2VxdESb2QDX+dPY4UahuuK9L0EddrxJjQ=";
|
||||
};
|
||||
|
||||
doCheck = false; # does not have any tests at all
|
||||
|
||||
propagatedBuildInputs = [
|
||||
drawille
|
||||
matplotlib
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"drawilleplot"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "matplotlib backend for graph output in unicode terminals using drawille";
|
||||
homepage = "https://github.com/gooofy/drawilleplot";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nobbz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
68
pkgs/development/python-modules/hledger-utils/default.nix
Normal file
68
pkgs/development/python-modules/hledger-utils/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitLab
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, unittestCheckHook
|
||||
, hledger
|
||||
, perl
|
||||
, rich
|
||||
, pandas
|
||||
, scipy
|
||||
, psutil
|
||||
, matplotlib
|
||||
, drawilleplot
|
||||
, asteval
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hledger-utils";
|
||||
version = "1.12.1";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "nobodyinperson";
|
||||
repo = "hledger-utils";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-uAFqBNRET3RaWDTyV53onrBs1fjPR4b5rAvg5lweUN0=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
rich
|
||||
pandas
|
||||
scipy
|
||||
psutil
|
||||
matplotlib
|
||||
drawilleplot
|
||||
asteval
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
hledger
|
||||
perl
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Utilities extending hledger";
|
||||
homepage = "https://gitlab.com/nobodyinperson/hledger-utils";
|
||||
license = with licenses; [cc0 cc-by-40 gpl3];
|
||||
maintainers = with maintainers; [ nobbz ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -29867,6 +29867,7 @@ with pkgs;
|
||||
hledger-interest = haskell.lib.compose.justStaticExecutables haskellPackages.hledger-interest;
|
||||
hledger-ui = haskell.lib.compose.justStaticExecutables haskellPackages.hledger-ui;
|
||||
hledger-web = haskell.lib.compose.justStaticExecutables haskellPackages.hledger-web;
|
||||
hledger-utils = with python3.pkgs; toPythonApplication hledger-utils;
|
||||
|
||||
homebank = callPackage ../applications/office/homebank {
|
||||
gtk = gtk3;
|
||||
|
@ -2814,6 +2814,10 @@ self: super: with self; {
|
||||
|
||||
dragonfly = callPackage ../development/python-modules/dragonfly { };
|
||||
|
||||
drawille = callPackage ../development/python-modules/drawille { };
|
||||
|
||||
drawilleplot = callPackage ../development/python-modules/drawilleplot { };
|
||||
|
||||
dremel3dpy = callPackage ../development/python-modules/dremel3dpy { };
|
||||
|
||||
drf-jwt = callPackage ../development/python-modules/drf-jwt { };
|
||||
@ -4321,6 +4325,8 @@ self: super: with self; {
|
||||
|
||||
hkdf = callPackage ../development/python-modules/hkdf { };
|
||||
|
||||
hledger-utils = callPackage ../development/python-modules/hledger-utils { };
|
||||
|
||||
hlk-sw16 = callPackage ../development/python-modules/hlk-sw16 { };
|
||||
|
||||
hmmlearn = callPackage ../development/python-modules/hmmlearn { };
|
||||
|
Loading…
Reference in New Issue
Block a user