Merge pull request #119573 from rhoriguchi/pythonPackages

Add couple python dependencies
This commit is contained in:
Sandro 2021-04-22 22:03:47 +02:00 committed by GitHub
commit 50c970fe76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "pymdstat";
version = "0.4.2";
src = fetchFromGitHub {
owner = "nicolargo";
repo = pname;
rev = "v${version}";
sha256 = "01hj8vyd9f7610sqvzphpr033rvnazbwvl11gi18ia3yqlnlncp0";
};
checkPhase = ''
${python.interpreter} $src/unitest.py
'';
pythonImportsCheck = [ "pymdstat" ];
meta = with lib; {
description = "A pythonic library to parse Linux /proc/mdstat file";
homepage = "https://github.com/nicolargo/pymdstat";
maintainers = with maintainers; [ rhoriguchi ];
license = licenses.mit;
};
}

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, future
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "pysmart-smartx";
version = "0.3.10";
src = fetchFromGitHub {
owner = "smartxworks";
repo = "pySMART";
rev = "v${version}";
sha256 = "1irl4nlgz3ds3aikraa9928gzn6hz8chfh7jnpmq2q7d2vqbdrjs";
};
propagatedBuildInputs = [ future ];
# tests require contextlib.nested
doCheck = !isPy3k;
checkInputs = [ pytestCheckHook mock ];
pythonImportsCheck = [ "pySMART" ];
meta = with lib; {
description = "It's a fork of pySMART with lots of bug fix and enhances";
homepage = "https://github.com/smartxworks/pySMART";
maintainers = with maintainers; [ rhoriguchi ];
license = licenses.gpl2Only;
};
}

View File

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

View File

@ -6080,6 +6080,8 @@ in {
pymc3 = callPackage ../development/python-modules/pymc3 { };
pymdstat = callPackage ../development/python-modules/pymdstat { };
pymediainfo = callPackage ../development/python-modules/pymediainfo { };
pymediaroom = callPackage ../development/python-modules/pymediaroom { };
@ -6446,6 +6448,8 @@ in {
pysmb = callPackage ../development/python-modules/pysmb { };
pysmart-smartx = callPackage ../development/python-modules/pysmart-smartx { };
pysmbc = callPackage ../development/python-modules/pysmbc { };
pysmf = callPackage ../development/python-modules/pysmf { };
@ -8004,6 +8008,8 @@ in {
spark_parser = callPackage ../development/python-modules/spark_parser { };
sparklines = callPackage ../development/python-modules/sparklines { };
SPARQLWrapper = callPackage ../development/python-modules/sparqlwrapper { };
sparse = callPackage ../development/python-modules/sparse { };