Merge master into staging-next
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, beancount
|
||||
, pytest, sh
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
pname = "beancount_docverif";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kjc0axrxpvm828lqq5m2ikq0ls8xksbmm7312zw867gdx56x5aj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beancount
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
sh
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/siriobalmelli/beancount_docverif";
|
||||
description = "Document verification plugin for Beancount";
|
||||
longDescription = ''
|
||||
Docverif is the "Document Verification" plugin for beancount, fulfilling the following functions:
|
||||
|
||||
- Require that every transaction touching an account have an accompanying document on disk.
|
||||
- Explictly declare the name of a document accompanying a transaction.
|
||||
- Explicitly declare that a transaction is expected not to have an accompanying document.
|
||||
- Look for an "implicit" PDF document matching transaction data.
|
||||
- Associate (and require) a document with any type of entry, including open entries themselves.
|
||||
- Guarantee integrity: verify that every document declared does in fact exist on disk.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ siriobalmelli ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bitstruct";
|
||||
version = "8.10.0";
|
||||
version = "8.11.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dncll29a0lx8hn1xlhr32abkvj1rh8xa6gc0aas8wnqzh7bvqqm";
|
||||
sha256 = "0p9d5242pkzag7ac5b5zdjyfqwxvj2jisyjghp6yhjbbwz1z44rb";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "internetarchive";
|
||||
version = "1.9.3";
|
||||
version = "1.9.4";
|
||||
|
||||
# Can't use pypi, data files for tests missing
|
||||
src = fetchFromGitHub {
|
||||
owner = "jjjake";
|
||||
repo = "internetarchive";
|
||||
rev = "v${version}";
|
||||
sha256 = "19av6cpps2qldfl3wb9mcirs1a48a4466m1v9k9yhdznqi4zb0ji";
|
||||
sha256 = "10xlblj21hanahsmw6lfggbrbpw08pdmvdgds1p58l8xd4fazli8";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From fd56b0d85393d684bd3bf99f33d8638da884282f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
|
||||
Date: Thu, 25 Jun 2020 09:52:11 +0100
|
||||
Subject: [PATCH] disable flake8/black8/coverage from tests
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
|
||||
---
|
||||
pytest.ini | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pytest.ini b/pytest.ini
|
||||
index 5027d34..4e2a2d2 100644
|
||||
--- a/pytest.ini
|
||||
+++ b/pytest.ini
|
||||
@@ -1,5 +1,5 @@
|
||||
[pytest]
|
||||
norecursedirs=dist build .tox .eggs
|
||||
-addopts=--doctest-modules --flake8 --black --cov
|
||||
+addopts=--doctest-modules
|
||||
doctest_optionflags=ALLOW_UNICODE ELLIPSIS ALLOW_BYTES
|
||||
filterwarnings=
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -12,6 +12,11 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
patches = [
|
||||
./0001-Don-t-run-flake8-checks-during-the-build.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ inflect more-itertools six ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lazr.uri";
|
||||
version = "1.0.3";
|
||||
version = "1.0.4";
|
||||
|
||||
disabled = isPy27; # namespace is broken for python2
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5c620b5993c8c6a73084176bfc51de64972b8373620476ed841931a49752dc8b";
|
||||
sha256 = "1griz2r0vhi9k91wfhlx5cx7y3slkfyzyqldaa9i0zp850iqz0q2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
42
pkgs/development/python-modules/pycoin/default.nix
Normal file
42
pkgs/development/python-modules/pycoin/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, gnupg
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycoin";
|
||||
version = "0.90.20200322";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c8af579e86c118deb64d39e0d844d53a065cdd8227ddd632112e5667370b53a3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"'
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
# Disable tests depending on online services
|
||||
disabledTests = [
|
||||
"ServicesTest"
|
||||
"test_tx_pay_to_opcode_list_txt"
|
||||
"test_tx_fetch_unspent"
|
||||
"test_tx_with_gpg"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation";
|
||||
homepage = "https://github.com/richardkiss/pycoin";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/pytest-freezegun/default.nix
Normal file
29
pkgs/development/python-modules/pytest-freezegun/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, freezegun
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-freezegun";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "060cdf192848e50a4a681a5e73f8b544c4ee5ebc1fab3cb7223a0097bac2f83f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
freezegun
|
||||
pytest
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wrap tests with fixtures in freeze_time";
|
||||
homepage = "https://github.com/ktosiek/pytest-freezegun";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
@@ -3,15 +3,17 @@
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, virtual-display
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-xvfb";
|
||||
version = "1.2.0";
|
||||
version = "2.0.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a7544ca8d0c7c40db4b40d7a417a7b071c68d6ef6bdf9700872d7a167302f979";
|
||||
sha256 = "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -35,7 +35,7 @@ buildPythonPackage rec {
|
||||
comment = "Scientific Python Development Environment";
|
||||
desktopName = "Spyder";
|
||||
genericName = "Python IDE";
|
||||
categories = "Application;Development;IDE;";
|
||||
categories = "Development;IDE;";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
24
pkgs/development/python-modules/srvlookup/default.nix
Normal file
24
pkgs/development/python-modules/srvlookup/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage
|
||||
, dnspython
|
||||
, mock, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "srvlookup";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1zf1v04zd5phabyqh0nhplr5a8vxskzfrzdh4akljnz1yk2n2a0b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dnspython ];
|
||||
checkInputs = [ mock nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/gmr/srvlookup";
|
||||
license = [ licenses.bsd3 ];
|
||||
description = "A small wrapper for dnspython to return SRV records for a given host, protocol, and domain name as a list of namedtuples.";
|
||||
maintainers = [ maintainers.mmlb ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
From 9dfd2a8fac4a643fd007390762ccc8564588b4bf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
|
||||
Date: Thu, 25 Jun 2020 10:16:52 +0100
|
||||
Subject: [PATCH] pytest: remove flake8/black/coverage
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
|
||||
---
|
||||
pytest.ini | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pytest.ini b/pytest.ini
|
||||
index bd6998d..a464529 100644
|
||||
--- a/pytest.ini
|
||||
+++ b/pytest.ini
|
||||
@@ -1,6 +1,6 @@
|
||||
[pytest]
|
||||
norecursedirs=dist build .tox .eggs
|
||||
-addopts=--doctest-modules --flake8 --black --cov
|
||||
+addopts=--doctest-modules
|
||||
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
|
||||
filterwarnings=
|
||||
# suppress known warning
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, setuptools_scm, pytest, freezegun, backports_unittest-mock
|
||||
, pytest-black, pytestcov, pytest-flake8
|
||||
, six, pytz, jaraco_functools }:
|
||||
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
|
||||
, six, pytz, jaraco_functools, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tempora";
|
||||
@@ -12,15 +11,22 @@ buildPythonPackage rec {
|
||||
sha256 = "e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.2";
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
patches = [
|
||||
./0001-pytest-remove-flake8-black-coverage.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
||||
|
||||
checkInputs = [ pytest pytest-flake8 pytest-black pytestcov freezegun backports_unittest-mock ];
|
||||
checkInputs = [
|
||||
pytest-freezegun pytest freezegun backports_unittest-mock
|
||||
];
|
||||
|
||||
# missing pytest-freezegun package
|
||||
checkPhase = ''
|
||||
pytest -k 'not get_nearest_year_for_day'
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
, stdenv
|
||||
, setuptools_scm
|
||||
, pytest
|
||||
, typing-extensions
|
||||
, glibcLocales
|
||||
}:
|
||||
|
||||
@@ -25,7 +26,7 @@ buildPythonPackage rec {
|
||||
substituteInPlace setup.cfg --replace " --cov" ""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytest typing-extensions ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test .
|
||||
|
||||
@@ -44,6 +44,9 @@ buildPythonPackage rec {
|
||||
"--tb=native"
|
||||
# ignore code linting tests
|
||||
"--ignore=tests/test_sourcecode.py"
|
||||
# Fails on Python 3.8
|
||||
# https://salsa.debian.org/python-team/modules/uvloop/-/commit/302a7e8f5a2869e13d0550cd37e7a8f480e79869
|
||||
"--ignore=tests/test_tcp.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
|
||||
Reference in New Issue
Block a user