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