Add python + maintainers
This commit is contained in:
parent
98bebabaee
commit
7425480fc9
10 changed files with 105 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
# My own flake with packages in dev before add it in nixpkgs
|
||||
|
||||
## Packages available
|
||||
|
||||
- maildev : Node (Auto updated with nvfetcher)
|
||||
- mkdocs-render-swagger-plugin : Python
|
||||
- stripe-mock : Go (Auto updated with nvfetcher)
|
||||
|
||||
# https://github.com/berberman/nvfetcher?tab=readme-ov-file#installation
|
|
@ -19,6 +19,26 @@
|
|||
},
|
||||
"version": "v2.1.0"
|
||||
},
|
||||
"mkdocs-render-swagger-plugin": {
|
||||
"cargoLocks": null,
|
||||
"date": null,
|
||||
"extract": null,
|
||||
"name": "mkdocs-render-swagger-plugin",
|
||||
"passthru": null,
|
||||
"pinned": false,
|
||||
"src": {
|
||||
"deepClone": false,
|
||||
"fetchSubmodules": false,
|
||||
"leaveDotGit": false,
|
||||
"name": null,
|
||||
"owner": "bharel",
|
||||
"repo": "mkdocs-render-swagger-plugin",
|
||||
"rev": "0.1.1",
|
||||
"sha256": "sha256-d/zNH3fp3hRl7DEMHWPMu7kRObBOUnGbngmgGwo40mc=",
|
||||
"type": "github"
|
||||
},
|
||||
"version": "0.1.1"
|
||||
},
|
||||
"stripe-mock": {
|
||||
"cargoLocks": null,
|
||||
"date": null,
|
||||
|
|
|
@ -12,6 +12,17 @@
|
|||
sha256 = "sha256-lTLhQ+gKQvfagKp0Ig+uOGwkUtzORaY1TzIkFOcoO3I=";
|
||||
};
|
||||
};
|
||||
mkdocs-render-swagger-plugin = {
|
||||
pname = "mkdocs-render-swagger-plugin";
|
||||
version = "0.1.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "bharel";
|
||||
repo = "mkdocs-render-swagger-plugin";
|
||||
rev = "0.1.1";
|
||||
fetchSubmodules = false;
|
||||
sha256 = "sha256-d/zNH3fp3hRl7DEMHWPMu7kRObBOUnGbngmgGwo40mc=";
|
||||
};
|
||||
};
|
||||
stripe-mock = {
|
||||
pname = "stripe-mock";
|
||||
version = "v0.183.0";
|
||||
|
|
6
maintainers/default.nix
Normal file
6
maintainers/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
florian = {
|
||||
email = "florian.richer@protonmail.com";
|
||||
name = "Florian RICHER";
|
||||
};
|
||||
}
|
|
@ -2,6 +2,10 @@
|
|||
src.github = "maildev/maildev"
|
||||
fetch.github = "maildev/maildev"
|
||||
|
||||
[mkdocs-render-swagger-plugin]
|
||||
src.github = "bharel/mkdocs-render-swagger-plugin"
|
||||
fetch.github = "bharel/mkdocs-render-swagger-plugin"
|
||||
|
||||
[stripe-mock]
|
||||
src.github = "stripe/stripe-mock"
|
||||
fetch.github = "stripe/stripe-mock"
|
|
@ -1,10 +1,12 @@
|
|||
{ pkgs }:
|
||||
|
||||
let
|
||||
maintainers = import ../maintainers;
|
||||
sources = import ../_sources/generated.nix { inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools; };
|
||||
packages = [
|
||||
(import ./go { inherit pkgs sources; })
|
||||
(import ./node { inherit pkgs sources; })
|
||||
(import ./go { inherit maintainers pkgs sources; })
|
||||
(import ./node { inherit maintainers pkgs sources; })
|
||||
# (import ./python { inherit maintainers pkgs sources; }) # Not work yet
|
||||
];
|
||||
in
|
||||
pkgs.lib.foldl (a: b: a // b) {} packages
|
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, sources }:
|
||||
{
|
||||
maintainers,
|
||||
pkgs,
|
||||
sources
|
||||
}:
|
||||
|
||||
{
|
||||
stripe-mock = pkgs.callPackage ./stripe-mock.nix { source = sources.stripe-mock; };
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, sources }:
|
||||
{
|
||||
maintainers,
|
||||
pkgs,
|
||||
sources
|
||||
}:
|
||||
|
||||
{
|
||||
maildev = pkgs.callPackage ./maildev.nix { source = sources.maildev; };
|
||||
|
|
9
pkgs/python/default.nix
Normal file
9
pkgs/python/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
maintainers,
|
||||
pkgs,
|
||||
sources
|
||||
}:
|
||||
|
||||
{
|
||||
mkdocs-render-swagger-plugin = pkgs.callPackage ./mkdocs-render-swagger-plugin.nix { inherit maintainers; source = sources.mkdocs-render-swagger-plugin; };
|
||||
}
|
35
pkgs/python/mkdocs-render-swagger-plugin.nix
Normal file
35
pkgs/python/mkdocs-render-swagger-plugin.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, source
|
||||
, maintainers
|
||||
|
||||
# dependencies
|
||||
, mkdocs
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (source) pname version src;
|
||||
|
||||
pyproject = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
mkdocs
|
||||
];
|
||||
|
||||
# No tests for python
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "mkdocs" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A plugin for MKDocs for rendering swagger & openapi schemas using SwaggerUI.";
|
||||
homepage = "https://github.com/bharel/mkdocs-render-swagger-plugin";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.florian ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue