python.pkgs.flask_script: improve expression

This commit is contained in:
Frederik Rietdijk 2018-02-26 19:31:19 +01:00
parent 73d381a13a
commit 9928b03832

View File

@ -1,17 +1,20 @@
{ lib, buildPythonPackage, fetchurl, flask, pytest }:
{ lib, buildPythonPackage, fetchPypi, flask, pytest }:
buildPythonPackage rec {
name = "Flask-Script-${version}";
pname = "Flask-Script";
version = "2.0.6";
src = fetchurl {
url = "mirror://pypi/F/Flask-Script/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf";
};
propagatedBuildInputs = [ flask ];
checkInputs = [ pytest ];
# No tests in archive
doCheck = false;
meta = with lib; {
homepage = http://github.com/smurfix/flask-script;
description = "Scripting support for Flask";