git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs: move my several packages to separate files
commit44a18ddd317e47d7330b56077fef8be3f4a66c80 authorNikolay Amiantov <ab@fmap.me> dateWed 26 Jul 2017, 20:32 (9 years ago) parent40a568b
4 files changed+72−61
pkgs/development/python-modules/hmmlearn/default.nix+23 pkgs/development/python-modules/pychromecast/default.nix+21 pkgs/development/python-modules/sphfile/default.nix+23 pkgs/top-level/python-packages.nix+5−61
pkgs/development/python-modules/hmmlearn/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, fetchurl, buildPythonPackage, numpy }:
2+
3+buildPythonPackage rec {
4+ name = "hmmlearn-${version}";
5+ version = "0.2.0";
6+
7+ src = fetchurl {
8+ url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
9+ sha256 = "0qc3fkdyrgfg31y1a8jzs83dxkjw78pqkdm44lll1iib63w4cik9";
10+ };
11+
12+ propagatedBuildInputs = [ numpy ];
13+
14+ doCheck = false;
15+
16+ meta = with lib; {
17+ description = "Hidden Markov Models in Python with scikit-learn like API";
18+ homepage = "https://github.com/hmmlearn/hmmlearn";
19+ license = licenses.bsd3;
20+ maintainers = with maintainers; [ abbradar ];
21+ platforms = platforms.unix;
22+ };
23+}
pkgs/development/python-modules/pychromecast/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, fetchurl, buildPythonPackage, requests, six, zeroconf, protobuf }:
2+
3+buildPythonPackage rec {
4+ name = "PyChromecast-${version}";
5+ version = "0.8.1";
6+
7+ src = fetchurl {
8+ url = "mirror://pypi/p/pychromecast/${name}.tar.gz";
9+ sha256 = "05rlr2hjng0xg2a9k9vwmrlvd7vy9sjhxxfl96kx25xynlkq6yq6";
10+ };
11+
12+ propagatedBuildInputs = [ requests six zeroconf protobuf ];
13+
14+ meta = with lib; {
15+ description = "Library for Python 2 and 3 to communicate with the Google Chromecast";
16+ homepage = "https://github.com/balloob/pychromecast";
17+ license = licenses.mit;
18+ maintainers = with maintainers; [ abbradar ];
19+ platforms = platforms.linux;
20+ };
21+}
pkgs/development/python-modules/sphfile/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, fetchurl, buildPythonPackage, numpy }:
2+
3+buildPythonPackage rec {
4+ name = "sphfile-${version}";
5+ version = "1.0.0";
6+
7+ src = fetchurl {
8+ url = "mirror://pypi/s/sphfile/${name}.tar.gz";
9+ sha256 = "1ly9746xrzbiax9cxr5sxlg0wvf6fdxcrgwsqqxckk3wnqfypfrd";
10+ };
11+
12+ propagatedBuildInputs = [ numpy ];
13+
14+ doCheck = false;
15+
16+ meta = with lib; {
17+ description = "Numpy-based NIST SPH audio-file reader";
18+ homepage = "https://github.com/mcfletch/sphfile";
19+ license = licenses.mit;
20+ maintainers = with maintainers; [ abbradar ];
21+ platforms = platforms.unix;
22+ };
23+}
pkgs/top-level/python-packages.nix+5−61
@@ -194,24 +194,8 @@ in {
194194
195195 pycryptodome = callPackage ../development/python-modules/pycryptodome { };
196196
197− PyChromecast = buildPythonPackage rec {
198− name = "PyChromecast-${version}";
199− version = "0.8.1";
200−
201− src = pkgs.fetchurl {
202− url = "mirror://pypi/p/pychromecast/${name}.tar.gz";
203− sha256 = "05rlr2hjng0xg2a9k9vwmrlvd7vy9sjhxxfl96kx25xynlkq6yq6";
204− };
205−
206− propagatedBuildInputs = with self; [ requests six zeroconf protobuf3_2 ];
207−
208− meta = {
209− description = "Library for Python 2 and 3 to communicate with the Google Chromecast";
210− homepage = "https://github.com/balloob/pychromecast";
211− license = licenses.mit;
212− maintainers = with maintainers; [ abbradar ];
213− platforms = platforms.linux;
214− };
197+ PyChromecast = callPackage ../development/python-modules/pychromecast {
198+ protobuf = self.protobuf3_2;
215199 };
216200
217201 pyexiv2 = if (!isPy3k) then callPackage ../development/python-modules/pyexiv2 {} else throw "pyexiv2 not supported for interpreter ${python.executable}";
@@ -11363,49 +11347,7 @@ in {
1136311347 propagatedBuildInputs = with self; [ requests webob ];
1136411348 };
1136511349
11366− hmmlearn = buildPythonPackage rec {
11367− name = "hmmlearn-${version}";
11368− version = "0.2.0";
11369−
11370− src = pkgs.fetchurl {
11371− url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
11372− sha256 = "0qc3fkdyrgfg31y1a8jzs83dxkjw78pqkdm44lll1iib63w4cik9";
11373− };
11374−
11375− propagatedBuildInputs = with self; [ numpy ];
11376−
11377− doCheck = false;
11378−
11379− meta = {
11380− description = "Hidden Markov Models in Python with scikit-learn like API";
11381− homepage = "https://github.com/hmmlearn/hmmlearn";
11382− license = licenses.bsd3;
11383− maintainers = with maintainers; [ abbradar ];
11384− platforms = platforms.unix;
11385− };
11386− };
11387−
11388− sphfile = buildPythonPackage rec {
11389− name = "sphfile-${version}";
11390− version = "1.0.0";
11391−
11392− src = pkgs.fetchurl {
11393− url = "mirror://pypi/s/sphfile/${name}.tar.gz";
11394− sha256 = "1ly9746xrzbiax9cxr5sxlg0wvf6fdxcrgwsqqxckk3wnqfypfrd";
11395− };
11396−
11397− propagatedBuildInputs = with self; [ numpy ];
11398−
11399− doCheck = false;
11400−
11401− meta = {
11402− description = "Numpy-based NIST SPH audio-file reader";
11403− homepage = "https://github.com/mcfletch/sphfile";
11404− license = licenses.mit;
11405− maintainers = with maintainers; [ abbradar ];
11406− platforms = platforms.unix;
11407− };
11408− };
11350+ hmmlearn = callPackage ../development/python-modules/hmmlearn { };
1140911351
1141011352 hcs_utils = buildPythonPackage rec {
1141111353 name = "hcs_utils-1.5";
@@ -21967,6 +21909,8 @@ in {
2196721909 };
2196821910 };
2196921911
21912+ sphfile = callPackage ../development/python-modules/sphfile { };
21913+
2197021914 sqlite3dbm = buildPythonPackage rec {
2197121915 name = "sqlite3dbm-0.1.4";
2197221916 disabled = isPy3k;