pythonPackages.falcon: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 15:51:21 -04:00 committed by Frederik Rietdijk
parent d9d19b2de9
commit fd9d52e1fe
2 changed files with 38 additions and 21 deletions

View File

@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, coverage
, ddt
, nose
, pyyaml
, requests
, testtools
, six
, python_mimeparse
}:
buildPythonPackage rec {
pname = "falcon";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "ddce23a2dd0abba6d19775e9bf7ba64e184b15a0e7163e65f62af63354193f63";
};
checkInputs = [coverage ddt nose pyyaml requests testtools];
propagatedBuildInputs = [ six python_mimeparse ];
# The travis build fails since the migration from multiprocessing to threading for hosting the API under test.
# OSError: [Errno 98] Address already in use
doCheck = false;
meta = with stdenv.lib; {
description = "An unladen web framework for building APIs and app backends";
homepage = http://falconframework.org;
license = licenses.asl20;
maintainers = with maintainers; [ desiderius ];
};
}

View File

@ -2284,28 +2284,8 @@ in {
vcversioner = callPackage ../development/python-modules/vcversioner { }; vcversioner = callPackage ../development/python-modules/vcversioner { };
falcon = buildPythonPackage (rec { falcon = callPackage ../development/python-modules/falcon { };
name = "falcon-1.0.0";
src = pkgs.fetchurl {
url = "mirror://pypi/f/falcon/${name}.tar.gz";
sha256 = "ddce23a2dd0abba6d19775e9bf7ba64e184b15a0e7163e65f62af63354193f63";
};
buildInputs = with self; stdenv.lib.optionals doCheck [coverage ddt nose pyyaml requests testtools];
propagatedBuildInputs = with self; [ six python_mimeparse ];
# The travis build fails since the migration from multiprocessing to threading for hosting the API under test.
# OSError: [Errno 98] Address already in use
doCheck = false;
meta = {
description = "An unladen web framework for building APIs and app backends";
homepage = http://falconframework.org;
license = licenses.asl20;
maintainers = with maintainers; [ desiderius ];
};
});
hug = buildPythonPackage rec { hug = buildPythonPackage rec {
name = "hug-2.1.2"; name = "hug-2.1.2";
src = pkgs.fetchurl { src = pkgs.fetchurl {