Merge pull request #119573 from rhoriguchi/pythonPackages
Add couple python dependencies
This commit is contained in:
commit
50c970fe76
30
pkgs/development/python-modules/pymdstat/default.nix
Normal file
30
pkgs/development/python-modules/pymdstat/default.nix
Normal 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;
|
||||
};
|
||||
}
|
36
pkgs/development/python-modules/pysmart-smartx/default.nix
Normal file
36
pkgs/development/python-modules/pysmart-smartx/default.nix
Normal 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;
|
||||
};
|
||||
}
|
31
pkgs/development/python-modules/sparklines/default.nix
Normal file
31
pkgs/development/python-modules/sparklines/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user