forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
753 B
Nix
31 lines
753 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flask
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "Flask-Silk";
|
|
version = "2018-06-28";
|
|
|
|
# master fixes flask import syntax and has no major changes
|
|
# new release requested: https://github.com/sublee/flask-silk/pull/6
|
|
src = fetchFromGitHub {
|
|
owner = "sublee";
|
|
repo = "flask-silk";
|
|
rev = "3a8166550f9a0ec52edae7bf31d9818c4c15c531";
|
|
sha256 = "0mplziqw52jfspas6vsm210lmxqqzgj0dxm8y0i3gpbyyykwcmh0";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Adds silk icons to your Flask application or module, or extension";
|
|
license = licenses.bsd3;
|
|
maintainers = teams.sage.members;
|
|
homepage = "https://github.com/sublee/flask-silk";
|
|
};
|
|
}
|