git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #104085 from kmein/feature/urlwatch

urlwatch: 2.19 -> 2.21

commit652c2cd5bf0af0363518bd4432f18d1947adfd22 authorLassulus <github@lassul.us> dateTue 17 Nov 2020, 21:45 (6 years ago) parent78f6ccc5ad6a3b
4 files changed+74−3
pkgs/development/python-modules/pyee/default.nix+37 pkgs/development/python-modules/pyppeteer/default.nix+29 pkgs/tools/networking/urlwatch/default.nix+4−3 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/pyee/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ buildPythonPackage, fetchPypi, lib, vcversioner, pytestrunner, mock, pytest, pytest-asyncio, pytest-trio, twisted, zipp, pyparsing, pyhamcrest, futures, attrs, stdenv, isPy27 }:
2+
3+buildPythonPackage rec {
4+ pname = "pyee";
5+ version = "7.0.4";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "105n8jzw8vy6cm8mm5sm86mwyaqqr8zjh8w9xvcb7hp29p0vrihm";
10+ };
11+
12+ buildInputs = [
13+ vcversioner
14+ ];
15+
16+ checkInputs = [
17+ mock
18+ pyhamcrest
19+ pytest
20+ pytest-asyncio
21+ pytest-trio
22+ pytestrunner
23+ twisted
24+ ] ++ stdenv.lib.optional isPy27 [
25+ attrs
26+ futures
27+ pyparsing
28+ zipp
29+ ];
30+
31+ meta = {
32+ description = "A port of Node.js's EventEmitter to python";
33+ homepage = "https://github.com/jfhbrook/pyee";
34+ license = lib.licenses.mit;
35+ maintainers = with lib.maintainers; [ kmein ];
36+ };
37+}
pkgs/development/python-modules/pyppeteer/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ buildPythonPackage, fetchPypi, lib, urllib3, pyee, tqdm, websockets, appdirs }:
2+
3+buildPythonPackage rec {
4+ pname = "pyppeteer";
5+ version = "0.2.2";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1s92izan7s3iffc85wpwi1qv9brcq0rlfqyi84wmpmg1dxk64g0m";
10+ };
11+
12+ # tests want to write to /homeless-shelter
13+ doCheck = false;
14+
15+ propagatedBuildInputs = [
16+ appdirs
17+ websockets
18+ tqdm
19+ pyee
20+ urllib3
21+ ];
22+
23+ meta = {
24+ description = "Headless chrome/chromium automation library (unofficial port of puppeteer)";
25+ homepage = "https://github.com/pyppeteer/pyppeteer";
26+ license = lib.licenses.mit;
27+ maintainers = with lib.maintainers; [ kmein ];
28+ };
29+}
pkgs/tools/networking/urlwatch/default.nix+4−3
@@ -2,13 +2,13 @@
22
33python3Packages.buildPythonApplication rec {
44 name = "urlwatch-${version}";
5− version = "2.19";
5+ version = "2.21";
66
77 src = fetchFromGitHub {
88 owner = "thp";
99 repo = "urlwatch";
1010 rev = version;
11− sha256 = "05vxs0x8gnsv2r9cy0brqny1y5jnj2mw11lqc8lqahx84xcs2m00";
11+ sha256 = "1s6bigkwymxdp9bkgvwg3lbf465i6k8kmak2w7czf4mhwavcfq63";
1212 };
1313
1414 propagatedBuildInputs = with python3Packages; [
@@ -20,12 +20,13 @@ python3Packages.buildPythonApplication rec {
2020 pycodestyle
2121 pyyaml
2222 requests
23+ pyppeteer
2324 ];
2425
2526 meta = with stdenv.lib; {
2627 description = "A tool for monitoring webpages for updates";
2728 homepage = "https://thp.io/2008/urlwatch/";
2829 license = licenses.bsd3;
29− maintainers = with maintainers; [ tv ];
30+ maintainers = with maintainers; [ kmein tv ];
3031 };
3132}
pkgs/top-level/python-packages.nix+4
@@ -4984,6 +4984,8 @@ in {
49844984
49854985 pyechonest = callPackage ../development/python-modules/pyechonest { };
49864986
4987+ pyee = callPackage ../development/python-modules/pyee { };
4988+
49874989 pyelftools = callPackage ../development/python-modules/pyelftools { };
49884990
49894991 pyemd = callPackage ../development/python-modules/pyemd { };
@@ -5344,6 +5346,8 @@ in {
53445346
53455347 pypoppler = callPackage ../development/python-modules/pypoppler { };
53465348
5349+ pyppeteer = callPackage ../development/python-modules/pyppeteer { };
5350+
53475351 pyprind = callPackage ../development/python-modules/pyprind { };
53485352
53495353 pyprof2calltree = callPackage ../development/python-modules/pyprof2calltree { };