aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/favicon
diff options
context:
space:
mode:
authorEnno Lohmeier <elo-gthb@nerd-works.de>2019-01-30 14:03:16 +0100
committerRobert Schütz <rschuetz17@gmail.com>2019-01-30 14:03:16 +0100
commitc995ad005e71c9638fcb7216b42c2db740a2ff82 (patch)
tree8c821df6b5c9c415c768f7b398eeb1eb7bd97ef6 /pkgs/development/python-modules/favicon
parentedbb9922c43eec1a180ddbdf156191a8778fbfe2 (diff)
pythonPackages.favicon: init at 0.5.1 (#54920)
Diffstat (limited to 'pkgs/development/python-modules/favicon')
-rw-r--r--pkgs/development/python-modules/favicon/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/favicon/default.nix b/pkgs/development/python-modules/favicon/default.nix
new file mode 100644
index 000000000000..e4675274c09f
--- /dev/null
+++ b/pkgs/development/python-modules/favicon/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock,
+ pytestrunner }:
+
+buildPythonPackage rec {
+ pname = "favicon";
+ version = "0.5.1";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "01jhb66nrqbf22z6ybpi8ndw6zifgysdmnh547027g96nz51669y";
+ };
+
+ buildInputs = [ pytestrunner ];
+ checkInputs = [ pytest requests-mock ];
+ propagatedBuildInputs = [ requests beautifulsoup4 ];
+
+ checkPhase = ''
+ pytest
+ '';
+
+ meta = with lib; {
+ description = "Find a website's favicon";
+ homepage = http://github.com/scottwernervt/favicon;
+ license = licenses.mit;
+ maintainers = with maintainers; [ elohmeier ];
+ };
+}