diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 15:51:21 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-10-18 11:02:23 +0200 |
commit | fd9d52e1fe468c61029a990310902692ffc7f27f (patch) | |
tree | 1b7c84e885edf435241c403fefd1f053e86da10b /pkgs | |
parent | d9d19b2de919173d13d2355325151a32ccd610d7 (diff) | |
download | nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar.gz nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar.bz2 nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar.lz nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar.xz nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.tar.zst nixlib-fd9d52e1fe468c61029a990310902692ffc7f27f.zip |
pythonPackages.falcon: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/falcon/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 22 |
2 files changed, 38 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix new file mode 100644 index 000000000000..1bca7eddde04 --- /dev/null +++ b/pkgs/development/python-modules/falcon/default.nix @@ -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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ae594295b1d4..12e2d0e84560 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2284,28 +2284,8 @@ in { vcversioner = callPackage ../development/python-modules/vcversioner { }; - falcon = buildPythonPackage (rec { - name = "falcon-1.0.0"; + falcon = callPackage ../development/python-modules/falcon { }; - 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 { name = "hug-2.1.2"; src = pkgs.fetchurl { |