git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.elasticsearch-dsl: 0.0.9 -> 6.2.1
commit18c7fbd78d9fe2f01b7c1d1ca03bb053b7ff4604 authorFlorian Klink <flokli@flokli.de> dateMon 24 Sep 2018, 19:07 (8 years ago) parentf753852
2 files changed+42−21
pkgs/development/python-modules/elasticsearch-dsl/default.nix+39 pkgs/top-level/python-packages.nix+3−21
pkgs/development/python-modules/elasticsearch-dsl/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, isPy3k
5+, elasticsearch
6+, ipaddress
7+, python-dateutil
8+, pytz
9+, six
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "elasticsearch-dsl";
14+ version = "6.2.1";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "0f0w23kzyym0fkzisdkcl4xpnm8fsi97v1kskyvfrhj3mxy179fh";
19+ };
20+
21+ propagatedBuildInputs = [ elasticsearch python-dateutil six ]
22+ ++ stdenv.lib.optional (!isPy3k) ipaddress;
23+
24+ # ImportError: No module named test_elasticsearch_dsl
25+ # Tests require a local instance of elasticsearch
26+ doCheck = false;
27+
28+ meta = with stdenv.lib; {
29+ description = "High level Python client for Elasticsearch";
30+ longDescription = ''
31+ Elasticsearch DSL is a high-level library whose aim is to help with
32+ writing and running queries against Elasticsearch. It is built on top of
33+ the official low-level client (elasticsearch-py).
34+ '';
35+ homepage = https://github.com/elasticsearch/elasticsearch-dsl-py;
36+ license = licenses.asl20;
37+ maintainers = with maintainers; [ desiderius ];
38+ };
39+}
pkgs/top-level/python-packages.nix+3−21
@@ -2197,27 +2197,9 @@ in {
21972197
21982198 elasticsearch = callPackage ../development/python-modules/elasticsearch { };
21992199
2200− elasticsearchdsl = buildPythonPackage (rec {
2201− name = "elasticsearch-dsl-0.0.9";
2202−
2203− src = pkgs.fetchurl {
2204− url = "mirror://pypi/e/elasticsearch-dsl/${name}.tar.gz";
2205− sha256 = "1gdcdshk881vy18p0czcmbb3i4s5hl8llnfg6961b6x7jkvhihbj";
2206− };
2207−
2208− buildInputs = with self; [ covCore dateutil elasticsearch mock pytest pytestcov unittest2 urllib3 pytz ];
2209−
2210− # ImportError: No module named test_elasticsearch_dsl
2211− # Tests require a local instance of elasticsearch
2212− doCheck = false;
2213−
2214− meta = {
2215− description = "Python client for Elasticsearch";
2216− homepage = https://github.com/elasticsearch/elasticsearch-dsl-py;
2217− license = licenses.asl20;
2218− maintainers = with maintainers; [ desiderius ];
2219− };
2220− });
2200+ elasticsearch-dsl = callPackage ../development/python-modules/elasticsearch-dsl { };
2201+ # alias
2202+ elasticsearchdsl = self.elasticsearch-dsl;
22212203
22222204 elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { };
22232205