1 { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, python, }:
3 buildPythonPackage rec {
9 hash = "sha256-otVfs+5HlHYJ9QIRylsLrEEahvPJNfuSyksLirfGaP8=";
12 datasrc = fetchFromGitHub {
13 owner = "hadiasghari";
16 hash = "sha256-R7Vi1Mn44Mg3HQLDk9O43MkXXwbLRr/jjVKSHJvgYj0";
20 install -dm755 $out/${python.sitePackages}/pyasn/data
21 cp $datasrc/data/* $out/${python.sitePackages}/pyasn/data
24 doCheck = false; # Tests require internet connection which wont work
26 pythonImportsCheck = [ "pyasn" ];
29 description = "Offline IP address to Autonomous System Number lookup module";
30 homepage = "https://github.com/hadiasghari/pyasn";
31 license = with licenses; [ bsdOriginal mit ];
32 maintainers = with maintainers; [ onny ];