Merge pull request #117628 from rmcgibbo/python3Packages.boltons

python3Packages.boltons: 20.2.0 -> 20.2.1
This commit is contained in:
Sandro 2021-03-26 01:02:48 +01:00 committed by GitHub
commit ead0ca46c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,35 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "boltons";
version = "20.2.0";
version = "20.2.1";
# No tests in PyPi Tarball
src = fetchFromGitHub {
owner = "mahmoud";
repo = "boltons";
rev = version;
sha256 = "08rd6av8dp5n1vz6nybmayl1mfsmj66cskiaybfshcgix29ca803";
sha256 = "0vw0h0z81gfxgjfijqiza92ic0siv9xy65mklgj5d0dzr1k9waw8";
};
checkInputs = [ pytest ];
checkPhase = "pytest tests";
patches = [
(fetchpatch {
url = "https://github.com/mahmoud/boltons/commit/754afddf141ea26956c88c7e13fe5e7ca7942654.patch";
sha256 = "14kcq8pl4pmgcnlnmj1sh1yrksgym0kn0kgz2648g192svqkbpz8";
})
];
checkInputs = [ pytestCheckHook ];
disabledTests = [
# This test is broken without this PR, which has not yet been merged
# https://github.com/mahmoud/boltons/pull/283
"test_frozendict_ior"
];
meta = with lib; {
homepage = "https://github.com/mahmoud/boltons";