diff --git a/pkgs/development/python-modules/thrift/default.nix b/pkgs/development/python-modules/thrift/default.nix new file mode 100644 index 000000000000..932c642e9b18 --- /dev/null +++ b/pkgs/development/python-modules/thrift/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "thrift"; + version = "0.9.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "dfbc3d3bd19d396718dab05abaf46d93ae8005e2df798ef02e32793cd963877e"; + }; + + # No tests. Breaks when not disabling. + doCheck = false; + + meta = with stdenv.lib; { + description = "Python bindings for the Apache Thrift RPC system"; + homepage = http://thrift.apache.org/; + license = licenses.asl20; + maintainers = with maintainers; [ hbunke ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4640224be13e..9a4d4cc17c80 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4427,26 +4427,7 @@ in { setproctitle = callPackage ../development/python-modules/setproctitle { }; - thrift = buildPythonPackage rec { - name = "thrift-${version}"; - version = "0.9.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/thrift/${name}.tar.gz"; - sha256 = "dfbc3d3bd19d396718dab05abaf46d93ae8005e2df798ef02e32793cd963877e"; - }; - - # No tests. Breaks when not disabling. - doCheck = false; - - meta = { - description = "Python bindings for the Apache Thrift RPC system"; - homepage = http://thrift.apache.org/; - license = licenses.asl20; - maintainers = with maintainers; [ hbunke ]; - - }; - }; + thrift = callPackage ../development/python-modules/thrift { }; geeknote = buildPythonPackage rec { version = "2015-05-11";