From b8f7cc5419f025ac3eb91c88d8d6038afc3d5f71 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 12 Jun 2018 19:00:07 +0200 Subject: [PATCH] python.pkgs.pytest-asyncio: minor improvements --- .../python-modules/pytest-asyncio/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pytest-asyncio/default.nix b/pkgs/development/python-modules/pytest-asyncio/default.nix index 0918b5db1db..e1ff0998396 100644 --- a/pkgs/development/python-modules/pytest-asyncio/default.nix +++ b/pkgs/development/python-modules/pytest-asyncio/default.nix @@ -1,18 +1,20 @@ -{ stdenv, buildPythonPackage, fetchurl, pytest, isPy3k }: +{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k }: buildPythonPackage rec { - name = "${pname}-${version}"; pname = "pytest-asyncio"; version = "0.8.0"; disabled = !isPy3k; - src = fetchurl { - url = "mirror://pypi/p/${pname}/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "f32804bb58a66e13a3eda11f8942a71b1b6a30466b0d2ffe9214787aab0e172e"; }; buildInputs = [ pytest ]; + # No tests in archive + doCheck = false; + meta = with stdenv.lib; { description = "library for testing asyncio code with pytest"; license = licenses.asl20;