diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-16 16:04:36 -0400 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-10-18 11:02:23 +0200 |
commit | 918af2267ec06e5e95ec6dfc610de5d1fcf9065f (patch) | |
tree | 00a123438870bcf12633501195f07e6d95eebd6c /pkgs/development/python-modules/hug | |
parent | cfe52039ac37044f571536346e1716c2f070bf76 (diff) |
pythonPackages.hug: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/hug')
-rw-r--r-- | pkgs/development/python-modules/hug/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hug/default.nix b/pkgs/development/python-modules/hug/default.nix new file mode 100644 index 0000000000000..4aeffc75823be --- /dev/null +++ b/pkgs/development/python-modules/hug/default.nix @@ -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; + }; + +} |