mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
pythonPackages.hug: refactor move to python-modules
This commit is contained in:
parent
cfe52039ac
commit
918af2267e
30
pkgs/development/python-modules/hug/default.nix
Normal file
30
pkgs/development/python-modules/hug/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, falcon
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "hug";
|
||||||
|
version = "2.1.2";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "93325e13706594933a9afb0d4f0b0748134494299038f07df41152baf6f89f4c";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ falcon requests ];
|
||||||
|
|
||||||
|
# tests are not shipped in the tarball
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
||||||
|
homepage = https://github.com/timothycrosley/hug;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -2286,25 +2286,7 @@ in {
|
||||||
|
|
||||||
falcon = callPackage ../development/python-modules/falcon { };
|
falcon = callPackage ../development/python-modules/falcon { };
|
||||||
|
|
||||||
hug = buildPythonPackage rec {
|
hug = callPackage ../development/python-modules/hug { };
|
||||||
name = "hug-2.1.2";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/h/hug/${name}.tar.gz";
|
|
||||||
sha256 = "93325e13706594933a9afb0d4f0b0748134494299038f07df41152baf6f89f4c";
|
|
||||||
};
|
|
||||||
disabled = !isPy3k;
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ falcon requests ];
|
|
||||||
|
|
||||||
# tests are not shipped in the tarball
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
|
||||||
homepage = https://github.com/timothycrosley/hug;
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
flup = callPackage ../development/python-modules/flup { };
|
flup = callPackage ../development/python-modules/flup { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue