python3Packages.adblock: 0.4.0 -> 0.4.4

authored by

Robert Schütz and committed by
Jonathan Ringer
69c5219c a15bd8e0

+19 -8
+19 -8
pkgs/development/python-modules/adblock/default.nix
··· 3 , fetchFromGitHub 4 , buildPythonPackage 5 , rustPlatform 6 - , pythonImportsCheckHook 7 , pkg-config 8 , openssl 9 , publicsuffix-list ··· 11 , libiconv 12 , CoreFoundation 13 , Security 14 }: 15 16 buildPythonPackage rec { 17 pname = "adblock"; 18 - version = "0.4.0"; 19 disabled = isPy27; 20 21 # Pypi only has binary releases ··· 23 owner = "ArniDagur"; 24 repo = "python-adblock"; 25 rev = version; 26 - sha256 = "10d6ks2fyzbizq3kb69q478idj0h86k6ygjb6wl3zq3mf65ma4zg"; 27 }; 28 29 cargoDeps = rustPlatform.fetchCargoTarball { 30 inherit src; 31 name = "${pname}-${version}"; 32 - hash = "sha256-gEFmj3/KvhvvsOK2nX2L1RUD4Wfp3nYzEzVnQZIsIDY="; 33 }; 34 35 format = "pyproject"; 36 37 - nativeBuildInputs = [ pkg-config pythonImportsCheckHook ] 38 ++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]); 39 40 buildInputs = [ openssl ] ··· 42 43 PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"; 44 45 - # There are no rust tests 46 - doCheck = false; 47 48 - pythonImportsCheck = [ "adblock" ]; 49 50 meta = with lib; { 51 description = "Python wrapper for Brave's adblocking library, which is written in Rust";
··· 3 , fetchFromGitHub 4 , buildPythonPackage 5 , rustPlatform 6 , pkg-config 7 , openssl 8 , publicsuffix-list ··· 10 , libiconv 11 , CoreFoundation 12 , Security 13 + , pytestCheckHook 14 + , toml 15 + , python 16 }: 17 18 buildPythonPackage rec { 19 pname = "adblock"; 20 + version = "0.4.4"; 21 disabled = isPy27; 22 23 # Pypi only has binary releases ··· 25 owner = "ArniDagur"; 26 repo = "python-adblock"; 27 rev = version; 28 + sha256 = "sha256-zNQ8zEpTLzyU5AnFBNpOGDJ02Ogu2+xl85LA+ia7Si4="; 29 }; 30 31 cargoDeps = rustPlatform.fetchCargoTarball { 32 inherit src; 33 name = "${pname}-${version}"; 34 + hash = "sha256-ajVZ0xPxC31hM1gQr3DC1HWdpIYBCSmqm0z2cflcClg="; 35 }; 36 37 format = "pyproject"; 38 39 + nativeBuildInputs = [ pkg-config ] 40 ++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]); 41 42 buildInputs = [ openssl ] ··· 44 45 PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"; 46 47 + checkInputs = [ pytestCheckHook toml ]; 48 + 49 + preCheck = '' 50 + # import from $out instead 51 + rm -r adblock 52 + ''; 53 + 54 + disabledTestPaths = [ 55 + # relies on directory removed above 56 + "tests/test_typestubs.py" 57 + ]; 58 59 + pythonImportsCheck = [ "adblock" "adblock.adblock" ]; 60 61 meta = with lib; { 62 description = "Python wrapper for Brave's adblocking library, which is written in Rust";