diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-12 23:51:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 23:51:40 +0200 |
commit | decd8199115832e324482b632fce35f2205247b8 (patch) | |
tree | 174281f8181aa68fe898c216b39120f4b326baa1 /pkgs/development | |
parent | df2bae8097cd1af266db72ed191ba89ccec9aa83 (diff) | |
parent | cf2603f144b86201635867c7e19f41fd965b382c (diff) | |
download | nixlib-decd8199115832e324482b632fce35f2205247b8.tar nixlib-decd8199115832e324482b632fce35f2205247b8.tar.gz nixlib-decd8199115832e324482b632fce35f2205247b8.tar.bz2 nixlib-decd8199115832e324482b632fce35f2205247b8.tar.lz nixlib-decd8199115832e324482b632fce35f2205247b8.tar.xz nixlib-decd8199115832e324482b632fce35f2205247b8.tar.zst nixlib-decd8199115832e324482b632fce35f2205247b8.zip |
Merge pull request #46556 from rnhmjoj/lastpass
qutebrowser: patch all python scripts
Diffstat (limited to 'pkgs/development')
5 files changed, 109 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/construct/default.nix b/pkgs/development/python-modules/construct/default.nix index 680f6e02cd01..f8e739f0bc7d 100644 --- a/pkgs/development/python-modules/construct/default.nix +++ b/pkgs/development/python-modules/construct/default.nix @@ -1,23 +1,26 @@ -{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest }: +{ stdenv, buildPythonPackage, fetchFromGitHub +, six, pytest, arrow +}: buildPythonPackage rec { - pname = "construct"; - version = "2.8.16"; - name = pname + "-" + version; + pname = "construct"; + version = "2.9.45"; src = fetchFromGitHub { - owner = "construct"; - repo = "construct"; - rev = "v${version}"; - sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j"; + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "0ig66xrzswpkhhmw123p2nvr15a9lxz54a1fmycfdh09327c1d3y"; }; propagatedBuildInputs = [ six ]; - checkInputs = [ pytest ]; + checkInputs = [ pytest arrow ]; + # TODO: figure out missing dependencies + doCheck = false; checkPhase = '' - py.test -k 'not test_numpy' tests + py.test -k 'not test_numpy and not test_gallery' tests ''; meta = with stdenv.lib; { diff --git a/pkgs/development/python-modules/pykeepass/default.nix b/pkgs/development/python-modules/pykeepass/default.nix new file mode 100644 index 000000000000..68c35ed0df12 --- /dev/null +++ b/pkgs/development/python-modules/pykeepass/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchPypi, buildPythonPackage +, lxml, pycryptodome, construct +, argon2_cffi, dateutil, enum34 +}: + +buildPythonPackage rec { + pname = "pykeepass"; + version = "3.0.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1kfnh42nimsbdpwpny2c9df82b2n4fb5fagh54ck06f3x483vd90"; + }; + + propagatedBuildInputs = [ + lxml pycryptodome construct + argon2_cffi dateutil enum34 + ]; + + meta = { + homepage = https://github.com/pschmitt/pykeepass; + description = "Python library to interact with keepass databases (supports KDBX3 and KDBX4)"; + license = lib.licenses.gpl3; + }; + +} diff --git a/pkgs/development/python-modules/pyreadability/default.nix b/pkgs/development/python-modules/pyreadability/default.nix new file mode 100644 index 000000000000..a95074b906e3 --- /dev/null +++ b/pkgs/development/python-modules/pyreadability/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchPypi, buildPythonPackage +, requests, chardet, cssselect, lxml +, pytest +}: + +buildPythonPackage rec { + pname = "PyReadability"; + version = "0.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1k6fq416pdmjcdqh6gdxl0y0k8kj1zlpzwp5574xsvsha18p2zpn"; + }; + + propagatedBuildInputs = [ requests chardet cssselect lxml ]; + + # ModuleNotFoundError: No module named 'tests' + doCheck = false; + + meta = { + homepage = https://github.com/hyperlinkapp/python-readability; + description = "fast python port of arc90's readability tool, updated to match latest readability.js!"; + license = lib.licenses.asl20; + }; + +} diff --git a/pkgs/development/python-modules/requests-file/default.nix b/pkgs/development/python-modules/requests-file/default.nix new file mode 100644 index 000000000000..fac222176519 --- /dev/null +++ b/pkgs/development/python-modules/requests-file/default.nix @@ -0,0 +1,20 @@ +{ lib, fetchPypi, buildPythonPackage, requests, six }: + +buildPythonPackage rec { + pname = "requests-file"; + version = "1.4.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"; + }; + + propagatedBuildInputs = [ requests six ]; + + meta = { + homepage = https://github.com/dashea/requests-file; + description = "Transport adapter for fetching file:// URLs with the requests python library"; + license = lib.licenses.asl20; + }; + +} diff --git a/pkgs/development/python-modules/tldextract/default.nix b/pkgs/development/python-modules/tldextract/default.nix new file mode 100644 index 000000000000..4e494244d314 --- /dev/null +++ b/pkgs/development/python-modules/tldextract/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchPypi, buildPythonPackage +, requests, requests-file, idna, pytest +, responses +}: + +buildPythonPackage rec { + pname = "tldextract"; + version = "2.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"; + }; + + propagatedBuildInputs = [ requests requests-file idna ]; + checkInputs = [ pytest responses ]; + + meta = { + homepage = https://github.com/john-kurkowski/tldextract; + description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List."; + license = lib.licenses.bsd3; + }; + +} |