python.pkgs.python-utils: use fetchPypi

This commit is contained in:
Robert Schütz 2019-01-22 15:57:35 +01:00
parent a9a28e9236
commit e5f2cf4af1

View File

@ -1,15 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
buildPythonPackage rec {
pname = "python-utils";
version = "2.3.0";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-utils";
rev = "v${version}";
sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
src = fetchPypi {
inherit pname version;
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
};
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];