git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.bsdiff4: add pythonImportsCheck
commit7cb333a45e6d957ec1a62d6c8728d5f827617177 authorFabian Affolter <mail@fabian-affolter.ch> dateFri 11 Mar 2022, 10:06 (5 years ago) parenta8ef434
1 file changed+10−2
pkgs/development/python-modules/bsdiff4/default.nix+10−2
pkgs/development/python-modules/bsdiff4/default.nix+10−2
@@ -1,24 +1,32 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4+, pythonOlder
45}:
56
67buildPythonPackage rec {
78 pname = "bsdiff4";
89 version = "1.2.2";
10+ format = "setuptools";
11+
12+ disabled = pythonOlder "3.7";
913
1014 src = fetchPypi {
1115 inherit pname version;
12− sha256 = "sha256-GICsP1KmxGrmvMbbEX5Ps1+bDM1a91/U/uaQfQDWmDw=";
16+ hash = "sha256-GICsP1KmxGrmvMbbEX5Ps1+bDM1a91/U/uaQfQDWmDw=";
1317 };
1418
19+ pythonImportsCheck = [
20+ "bsdiff4"
21+ ];
22+
1523 checkPhase = ''
1624 mv bsdiff4 _bsdiff4
1725 python -c 'import bsdiff4; bsdiff4.test()'
1826 '';
1927
2028 meta = with lib; {
21− description = "binary diff and patch using the BSDIFF4-format";
29+ description = "Binary diff and patch using the BSDIFF4-format";
2230 homepage = "https://github.com/ilanschnell/bsdiff4";
2331 license = licenses.bsdProtection;
2432 maintainers = with maintainers; [ ris ];