nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pbr,
6 requests,
7}:
8
9buildPythonPackage rec {
10 pname = "icmplib";
11 version = "3.0.4";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "ValentinBELYN";
16 repo = "icmplib";
17 rev = "v${version}";
18 hash = "sha256-PnBcGiUvftz/KYg9Qd2GaIcF3OW4lYH301uI5/M5CBI=";
19 };
20
21 propagatedBuildInputs = [
22 pbr
23 requests
24 ];
25
26 # Project has no tests
27 doCheck = false;
28 pythonImportsCheck = [ "icmplib" ];
29
30 meta = {
31 description = "Python implementation of the ICMP protocol";
32 homepage = "https://github.com/ValentinBELYN/icmplib";
33 license = with lib.licenses; [ lgpl3Plus ];
34 maintainers = with lib.maintainers; [ fab ];
35 };
36}