diff --git a/pkgs/development/python-modules/pyasn/default.nix b/pkgs/development/python-modules/pyasn/default.nix index b180226ec46c..3054af1b4e09 100644 --- a/pkgs/development/python-modules/pyasn/default.nix +++ b/pkgs/development/python-modules/pyasn/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, }: +{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, python, }: buildPythonPackage rec { pname = "pyasn"; @@ -9,6 +9,18 @@ buildPythonPackage rec { sha256 = "sha256-6UK1SRY2Pse4tw6urs0OtOQe8bz0ojl7KabXFfzN+SU="; }; + datasrc = fetchFromGitHub { + owner = "hadiasghari"; + repo = "pyasn"; + rev = "${version}"; + sha256 = "sha256-R7Vi1Mn44Mg3HQLDk9O43MkXXwbLRr/jjVKSHJvgYj0"; + }; + + postInstall = '' + install -dm755 $out/${python.sitePackages}/pyasn/data + cp $datasrc/data/* $out/${python.sitePackages}/pyasn/data + ''; + doCheck = false; # Tests require internet connection which wont work pythonImportsCheck = [ "pyasn" ];