diff --git a/pkgs/development/python-modules/tlslite/default.nix b/pkgs/development/python-modules/tlslite/default.nix new file mode 100644 index 000000000000..75d622ef34f3 --- /dev/null +++ b/pkgs/development/python-modules/tlslite/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "tlslite"; + version = "0.4.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "1fxx6d3nw5r1hqna1h2jvqhcygn9fyshlm0gh3gp0b1ji824gd6r"; + }; + + meta = with stdenv.lib; { + description = "A pure Python implementation of SSL and TLS"; + homepage = https://pypi.python.org/pypi/tlslite; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 12695c685825..70cb61373434 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3979,21 +3979,7 @@ in { py = python.override{x11Support=true;}; in callPackage ../development/python-modules/tkinter { py = py; }; - tlslite = buildPythonPackage rec { - name = "tlslite-${version}"; - version = "0.4.8"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/tlslite/${name}.tar.gz"; - sha256 = "1fxx6d3nw5r1hqna1h2jvqhcygn9fyshlm0gh3gp0b1ji824gd6r"; - }; - - meta = { - description = "A pure Python implementation of SSL and TLS"; - homepage = https://pypi.python.org/pypi/tlslite; - license = licenses.bsd3; - }; - }; + tlslite = callPackage ../development/python-modules/tlslite { }; qrcode = buildPythonPackage rec { name = "qrcode-${version}";