Merge pull request #172390 from fabaff/pure-pcapy3-clean

python310Packages.pure-pcapy3: add pythonImportsCheck

authored by

Fabian Affolter and committed by
GitHub
08dc9072 cf28039b

+15 -4
+15 -4
pkgs/development/python-modules/pure-pcapy3/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + }: 2 6 3 7 buildPythonPackage rec { 4 8 pname = "pure-pcapy3"; 5 9 version = "1.0.1"; 10 + format = "setuptools"; 11 + 12 + disabled = pythonOlder "3.7"; 6 13 7 14 src = fetchPypi { 8 15 inherit pname version; 9 - sha256 = "14panfklap6wwi9avw46gvd7wg9mkv9xbixvbvmi1m2adpqlb7mr"; 16 + hash = "sha256-uZ5F8W1K1BDrXrvH1dOeNT1+2n6G8K1S5NxcRaez6pI="; 10 17 }; 18 + 19 + pythonImportsCheck = [ 20 + "pure_pcapy" 21 + ]; 11 22 12 23 meta = with lib; { 13 - description = "Pure Python reimplementation of pcapy. This package is API compatible and a drop-in replacement."; 14 - homepage = "https://bitbucket.org/viraptor/pure-pcapy"; 24 + description = "Reimplementation of pcapy"; 25 + homepage = "https://github.com/rcloran/pure-pcapy-3"; 15 26 license = licenses.bsd2; 16 27 maintainers = with maintainers; [ etu ]; 17 28 };