pubs: pin pyfakefs version

authored by Robert Schütz and committed by Frederik Rietdijk 59bfd124 8b85031f

+22 -5
+22 -5
pkgs/tools/misc/pubs/default.nix
··· 1 - { stdenv, fetchFromGitHub, python3Packages }: 2 3 - python3Packages.buildPythonApplication rec { 4 - name = "pubs-${version}"; 5 version = "0.7.0"; 6 7 src = fetchFromGitHub { ··· 13 14 propagatedBuildInputs = with python3Packages; [ 15 dateutil configobj bibtexparser pyyaml requests beautifulsoup4 16 - pyfakefs ddt 17 ]; 18 19 preCheck = '' 20 # API tests require networking 21 rm tests/test_apis.py ··· 29 homepage = https://github.com/pubs/pubs; 30 license = licenses.lgpl3; 31 maintainers = with maintainers; [ gebner ]; 32 - platforms = platforms.all; 33 }; 34 }
··· 1 + { stdenv, fetchFromGitHub, python3 }: 2 + 3 + let 4 + python3Packages = (python3.override { 5 + packageOverrides = self: super: { 6 + # https://github.com/pubs/pubs/issues/131 7 + pyfakefs = super.pyfakefs.overridePythonAttrs (oldAttrs: rec { 8 + version = "3.3"; 9 + src = self.fetchPypi { 10 + pname = "pyfakefs"; 11 + inherit version; 12 + sha256 = "e3e198dea5e0d5627b73ba113fd0b139bb417da6bc15d920b2c873143d2f12a6"; 13 + }; 14 + postPatch = ""; 15 + doCheck = false; 16 + }); 17 + }; 18 + }).pkgs; 19 20 + in python3Packages.buildPythonApplication rec { 21 + pname = "pubs"; 22 version = "0.7.0"; 23 24 src = fetchFromGitHub { ··· 30 31 propagatedBuildInputs = with python3Packages; [ 32 dateutil configobj bibtexparser pyyaml requests beautifulsoup4 33 ]; 34 35 + checkInputs = with python3Packages; [ pyfakefs ddt ]; 36 + 37 preCheck = '' 38 # API tests require networking 39 rm tests/test_apis.py ··· 47 homepage = https://github.com/pubs/pubs; 48 license = licenses.lgpl3; 49 maintainers = with maintainers; [ gebner ]; 50 }; 51 }