git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108477 from fabaff/webthing

python3Packages.webthing: init at 0.15.0

commitbc7013f6f7a1ffdd2b0f9349ab557fae78987dc9 authorSandro <sandro.jaeckel@gmail.com> dateWed 6 Jan 2021, 02:06 (6 years ago) parentcde7613c2f1dfa
2 files changed+42
pkgs/development/python-modules/webthing/default.nix+40 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/webthing/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, ifaddr
5+, jsonschema
6+, pyee
7+, tornado
8+, zeroconf
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "webthing";
13+ version = "0.15.0";
14+
15+ src = fetchFromGitHub {
16+ owner = "WebThingsIO";
17+ repo = "webthing-python";
18+ rev = "v${version}";
19+ sha256 = "06264rwchy4qmbn7lv7m00qg864y7aw3rngcqqcr9nvaqz4rb0fg";
20+ };
21+
22+ propagatedBuildInputs = [
23+ ifaddr
24+ jsonschema
25+ pyee
26+ tornado
27+ zeroconf
28+ ];
29+
30+ # no tests are present
31+ doCheck = false;
32+ pythonImportsCheck = [ "webthing" ];
33+
34+ meta = with lib; {
35+ description = "Python implementation of a Web Thing server";
36+ homepage = "https://github.com/WebThingsIO/webthing-python";
37+ license = with licenses; [ mpl20 ];
38+ maintainers = with maintainers; [ fab ];
39+ };
40+}
pkgs/top-level/python-packages.nix+2
@@ -7914,6 +7914,8 @@ in {
79147914
79157915 webtest = callPackage ../development/python-modules/webtest { };
79167916
7917+ webthing = callPackage ../development/python-modules/webthing { };
7918+
79177919 werkzeug = callPackage ../development/python-modules/werkzeug { };
79187920
79197921 west = callPackage ../development/python-modules/west { };