nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, }:
2
3buildPythonPackage rec {
4 pname = "pyasn";
5 version = "1.6.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-6UK1SRY2Pse4tw6urs0OtOQe8bz0ojl7KabXFfzN+SU=";
10 };
11
12 doCheck = false; # Tests require internet connection which wont work
13
14 pythonImportsCheck = [ "pyasn" ];
15
16 meta = with lib; {
17 description = "Offline IP address to Autonomous System Number lookup module";
18 homepage = "https://github.com/hadiasghari/pyasn";
19 license = with licenses; [ bsdOriginal mit ];
20 maintainers = with maintainers; [ onny ];
21 };
22}