Merge pull request #46556 from rnhmjoj/lastpass

qutebrowser: patch all python scripts
This commit is contained in:
xeji
2018-09-12 23:51:40 +02:00
committed by GitHub
7 changed files with 130 additions and 20 deletions

View File

@@ -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; {

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}