3
0
Fork 0
forked from mirrors/nixpkgs

pyasn: add missing databases

This commit is contained in:
Ram Kromberg 2022-06-02 17:27:22 +03:00
parent 2acecae344
commit 9644cda0a0

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, }: { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, python, }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyasn"; pname = "pyasn";
@ -9,6 +9,18 @@ buildPythonPackage rec {
sha256 = "sha256-6UK1SRY2Pse4tw6urs0OtOQe8bz0ojl7KabXFfzN+SU="; 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 doCheck = false; # Tests require internet connection which wont work
pythonImportsCheck = [ "pyasn" ]; pythonImportsCheck = [ "pyasn" ];