git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #47283 from flokli/elasticsearch-dsl-6.2.1

pythonPackages.elasticsearch-dsl: 0.0.9 -> 6.2.1

commit725b57ba11e3e08c71cc4e754b63a72b512a88bd authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 24 Sep 2018, 20:40 (8 years ago) parentf705ee218c7fbd
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
@@ -2209,27 +2209,9 @@ in {
22092209
22102210 elasticsearch = callPackage ../development/python-modules/elasticsearch { };
22112211
2212− elasticsearchdsl = buildPythonPackage (rec {
2213− name = "elasticsearch-dsl-0.0.9";
2214−
2215− src = pkgs.fetchurl {
2216− url = "mirror://pypi/e/elasticsearch-dsl/${name}.tar.gz";
2217− sha256 = "1gdcdshk881vy18p0czcmbb3i4s5hl8llnfg6961b6x7jkvhihbj";
2218− };
2219−
2220− buildInputs = with self; [ covCore dateutil elasticsearch mock pytest pytestcov unittest2 urllib3 pytz ];
2221−
2222− # ImportError: No module named test_elasticsearch_dsl
2223− # Tests require a local instance of elasticsearch
2224− doCheck = false;
2225−
2226− meta = {
2227− description = "Python client for Elasticsearch";
2228− homepage = https://github.com/elasticsearch/elasticsearch-dsl-py;
2229− license = licenses.asl20;
2230− maintainers = with maintainers; [ desiderius ];
2231− };
2232− });
2212+ elasticsearch-dsl = callPackage ../development/python-modules/elasticsearch-dsl { };
2213+ # alias
2214+ elasticsearchdsl = self.elasticsearch-dsl;
22332215
22342216 elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { };
22352217