forked from mirrors/nixpkgs
pyasn: add missing databases
This commit is contained in:
parent
2acecae344
commit
9644cda0a0
|
@ -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" ];
|
||||||
|
|
Loading…
Reference in a new issue