diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-10 11:05:27 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-10 11:07:03 +0100 |
commit | 5ca63e04624bd6afd54c1a3d5315550c9ad2c606 (patch) | |
tree | 5b35ae6bed09afad2ab9aab9a5b1f4796a8e0efb /pkgs/development | |
parent | 56224e27af56a5ca62917b73c2bfc90f943aa862 (diff) | |
download | nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar.gz nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar.bz2 nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar.lz nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar.xz nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.tar.zst nixlib-5ca63e04624bd6afd54c1a3d5315550c9ad2c606.zip |
python3Packages.async-timeout: clean up
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/async_timeout/default.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/async_timeout/default.nix b/pkgs/development/python-modules/async_timeout/default.nix index 650517d44d92..53010a2a031d 100644 --- a/pkgs/development/python-modules/async_timeout/default.nix +++ b/pkgs/development/python-modules/async_timeout/default.nix @@ -1,22 +1,19 @@ { lib -, fetchurl +, fetchPypi , buildPythonPackage , pytestrunner , pythonOlder }: -let +buildPythonPackage rec { pname = "async-timeout"; version = "2.0.0"; -in buildPythonPackage rec { - name = "${pname}-${version}"; - src = fetchurl { - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "c17d8ac2d735d59aa62737d76f2787a6c938f5a944ecf768a8c0ab70b0dea566"; }; - buildInputs = [ pytestrunner ]; # Circular dependency on aiohttp doCheck = false; @@ -27,4 +24,4 @@ in buildPythonPackage rec { homepage = https://github.com/aio-libs/async_timeout/; license = lib.licenses.asl20; }; -} \ No newline at end of file +} |