From 9644cda0a03a49777815ed4b6de41fe4eeb73a3b Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Thu, 2 Jun 2022 17:27:22 +0300 Subject: [PATCH] pyasn: add missing databases --- pkgs/development/python-modules/pyasn/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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" ];