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 }: 2 3 buildPythonPackage rec { 4 pname = "pure-pcapy3"; 5 version = "1.0.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 - sha256 = "14panfklap6wwi9avw46gvd7wg9mkv9xbixvbvmi1m2adpqlb7mr"; 10 }; 11 12 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"; 15 license = licenses.bsd2; 16 maintainers = with maintainers; [ etu ]; 17 };
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + }: 6 7 buildPythonPackage rec { 8 pname = "pure-pcapy3"; 9 version = "1.0.1"; 10 + format = "setuptools"; 11 + 12 + disabled = pythonOlder "3.7"; 13 14 src = fetchPypi { 15 inherit pname version; 16 + hash = "sha256-uZ5F8W1K1BDrXrvH1dOeNT1+2n6G8K1S5NxcRaez6pI="; 17 }; 18 + 19 + pythonImportsCheck = [ 20 + "pure_pcapy" 21 + ]; 22 23 meta = with lib; { 24 + description = "Reimplementation of pcapy"; 25 + homepage = "https://github.com/rcloran/pure-pcapy-3"; 26 license = licenses.bsd2; 27 maintainers = with maintainers; [ etu ]; 28 };