From 1ddfe387ec3b064257f70fea0a4dbf9ae3a94abc Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Tue, 3 Dec 2024 16:00:03 +0800 Subject: [PATCH] :package: Add autopxd --- _sources/generated.nix | 8 +++++ default.nix | 1 + nvfetcher.toml | 4 +++ .../python-modules/autopxd/default.nix | 31 +++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/autopxd/default.nix diff --git a/_sources/generated.nix b/_sources/generated.nix index 1f1ed4e..2e49283 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -1,6 +1,14 @@ # This file was generated by nvfetcher, please do not modify it manually. { fetchgit, fetchurl, fetchFromGitHub, dockerTools }: { + autopxd = { + pname = "autopxd"; + version = "2.5.0"; + src = fetchurl { + url = "https://pypi.org/packages/source/a/autopxd2/autopxd2-2.5.0.tar.gz"; + sha256 = "sha256-uxVWz2LSXWpDYvQFrxlrmxA1XQagyHTfFf4hhaHKOqc="; + }; + }; autotools-language-server = { pname = "autotools-language-server"; version = "0.0.21"; diff --git a/default.nix b/default.nix index 84fb26b..ed6257d 100644 --- a/default.nix +++ b/default.nix @@ -52,6 +52,7 @@ let stardict-langdao-ce-gb = callPackage ./pkgs/data/misc/stardict-langdao-ce-gb { }; stardict-langdao-ec-gb = callPackage ./pkgs/data/misc/stardict-langdao-ec-gb { }; windows10-themes = callPackage ./pkgs/data/misc/windows10-themes { }; + autopxd = callPackage ./pkgs/development/python-modules/autopxd { }; pyrime = callPackage ./pkgs/development/python-modules/pyrime { }; lsp-tree-sitter = callPackage ./pkgs/development/python-modules/lsp-tree-sitter { }; diff --git a/nvfetcher.toml b/nvfetcher.toml index 58bce19..8f2f2d8 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -6,6 +6,10 @@ fetch.github = "B00merang-Artwork/Windows-10" src.github = "B00merang-Project/Windows-10" fetch.github = "B00merang-Project/Windows-10" +[autopxd] +src.pypi = "autopxd2" +fetch.pypi = "autopxd2" + [undollar] src.github = "Freed-Wu/undollar" fetch.github = "Freed-Wu/undollar" diff --git a/pkgs/development/python-modules/autopxd/default.nix b/pkgs/development/python-modules/autopxd/default.nix new file mode 100644 index 0000000..c3d8a73 --- /dev/null +++ b/pkgs/development/python-modules/autopxd/default.nix @@ -0,0 +1,31 @@ +{ + mySources, + python3, + lib, +}: + +with python3.pkgs; + +buildPythonPackage { + inherit (mySources.autopxd) pname version src; + format = "pyproject"; + disabled = pythonOlder "3.6"; + propagatedBuildInputs = [ + click + pycparser + ]; + nativeBuildInputs = [ + setuptools + ]; + pythonImportsCheck = [ + "autopxd" + ]; + + meta = with lib; { + homepage = "https://github.com/elijahr/python-autopxd2"; + description = "generates .pxd files automatically from .h files"; + license = licenses.mit; + maintainers = with maintainers; [ Freed-Wu ]; + platforms = platforms.unix; + }; +}