From 7b43f18c51d92c70cc05d979448e320df434441e Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 4 Feb 2022 15:43:14 +0100 Subject: [PATCH] python3Packages.pyasn: init at 1.6.1 --- .../python-modules/pyasn/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/pyasn/default.nix diff --git a/pkgs/development/python-modules/pyasn/default.nix b/pkgs/development/python-modules/pyasn/default.nix new file mode 100644 index 000000000000..b180226ec46c --- /dev/null +++ b/pkgs/development/python-modules/pyasn/default.nix @@ -0,0 +1,22 @@ +{ lib, buildPythonPackage, fetchPypi, }: + +buildPythonPackage rec { + pname = "pyasn"; + version = "1.6.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-6UK1SRY2Pse4tw6urs0OtOQe8bz0ojl7KabXFfzN+SU="; + }; + + doCheck = false; # Tests require internet connection which wont work + + pythonImportsCheck = [ "pyasn" ]; + + meta = with lib; { + description = "Offline IP address to Autonomous System Number lookup module"; + homepage = "https://github.com/hadiasghari/pyasn"; + license = with licenses; [ bsdOriginal mit ]; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ca29dee206fb..0807bce56d9d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6510,6 +6510,8 @@ in { inherit (pkgs) arrow-cpp cmake; }; + pyasn = callPackage ../development/python-modules/pyasn { }; + pyasn1 = callPackage ../development/python-modules/pyasn1 { }; pyasn1-modules = callPackage ../development/python-modules/pyasn1-modules { };