Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2020-10-22 21:20:14 +02:00
103 changed files with 820 additions and 463 deletions

View File

@@ -0,0 +1,24 @@
{ lib, fetchPypi, buildPythonPackage, rply, pytestCheckHook, isPy3k }:
buildPythonPackage rec {
pname = "baron";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "0fib74nkqnl1i2zzlhbbfpw3whwc4951p9x61r2xrxhwp4r9yn5h";
};
propagatedBuildInputs = [ rply ];
checkInputs = [ pytestCheckHook ];
doCheck = isPy3k;
meta = with lib; {
homepage = "https://github.com/gristlabs/asttokens";
description = "Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ marius851000 ];
};
}

View File

@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "google-api-python-client";
version = "1.12.3";
version = "1.12.4";
src = fetchPypi {
inherit pname version;
sha256 = "844ef76bda585ea0ea2d5e7f8f9a0eb10d6e2eba66c4fea0210ec7843941cb1a";
sha256 = "1mn20wzy2001wk75br2qfx73yj8dx056f9xgkcri6w8hmbhm1f6l";
};
# No tests included in archive

View File

@@ -0,0 +1,57 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, p7zip,
unzip, cabextract, zip, zopfli, lzip, zpaq, gnutar, gnugrep, diffutils, file,
gzip, bzip2, xz}:
# unrar is unfree, as well as 7z with unrar support, not including it (patool doesn't support unar)
let
compression-utilities = [
p7zip
unzip
gnutar
cabextract
zip
zopfli
lzip
zpaq
gzip
gnugrep
diffutils
bzip2
file
xz
];
in
buildPythonPackage rec {
pname = "patool";
version = "1.12";
#pypi doesn't have test data
src = fetchFromGitHub {
owner = "wummel";
repo = pname;
rev = "upstream/${version}";
sha256 = "0v4r77sm3yzh7y1whfwxmp01cchd82jbhvbg9zsyd2yb944imzjy";
};
prePatch = ''
substituteInPlace patoolib/util.py \
--replace "path = None" 'path = append_to_path(os.environ["PATH"], "${lib.makeBinPath compression-utilities}")'
'';
checkInputs = [ pytestCheckHook ] ++ compression-utilities;
disabledTests = [
"test_unzip"
"test_unzip_file"
"test_zip"
"test_zip_file"
];
meta = with lib; {
description = "portable archive file manager";
homepage = "https://wummel.github.io/patool/";
license = licenses.gpl3;
maintainers = with maintainers; [ marius851000 ];
};
}

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "pypblib";
version = "0.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "0qlhykm9flj6cv3v0b9q40gy21yz0lnp0wxlxvb3ijkpy45r7pbi";
};
pythonImportsCheck = [ "pypblib" ];
meta = with lib; {
homepage = "https://pypi.org/project/pypblib/";
description = "PBLib Python3 Bindings";
license = licenses.mit;
maintainers = [ maintainers.marius851000 ];
};
}

View File

@@ -0,0 +1,24 @@
{ buildPythonPackage, fetchFromGitHub, lib, six, pypblib, pytestCheckHook }:
buildPythonPackage rec {
pname = "python-sat";
version = "0.1.6.dev6";
src = fetchFromGitHub {
owner = "pysathq";
repo = "pysat";
rev = version;
sha256 = "1gckxhqkvzyw7pmwg8xzxq146jysqy0s23l5mjc3awm6swdij66y";
};
propagatedBuildInputs = [ six pypblib ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Toolkit to provide interface for various SAT (without optional dependancy py-aiger-cnf)";
homepage = "https://github.com/pysathq/pysat";
license = licenses.mit;
maintainers = [ maintainers.marius851000 ];
};
}

View File

@@ -0,0 +1,27 @@
{ lib, fetchPypi, buildPythonPackage, baron, pytestCheckHook }:
buildPythonPackage rec {
pname = "redbaron";
version = "0.9.2";
src = fetchPypi {
inherit pname version;
sha256 = "0bqkq0wn20cc3qrcd1ifq74p4m570j345bkq4axl08kbr8whfba7";
};
propagatedBuildInputs = [ baron ];
preCheck = ''
rm -rf tests/__pycache__
rm tests/test_bounding_box.py
''; #error about fixtures
checkInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/gristlabs/asttokens";
description = "Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ marius851000 ];
};
}

View File

@@ -19,6 +19,6 @@ buildPythonPackage rec {
meta = with stdenv.lib; {
description = "Random User-Agent middleware based on fake-useragent";
homepage = "https://github.com/alecxe/scrapy-fake-useragent";
license = licenses.bsd3;
license = licenses.mit;
};
}