Skip to content

Commit

Permalink
📦 Add autopxd
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 3, 2024
1 parent 1f1323c commit 1ddfe38
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/autopxd/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 1ddfe38

Please sign in to comment.