
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
28 lines
592 B
Nix
28 lines
592 B
Nix
{
|
|
lib,
|
|
pythonPackages,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "nixbang";
|
|
version = "0.1.2";
|
|
format = "setuptools";
|
|
namePrefix = "";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "madjar";
|
|
repo = "nixbang";
|
|
rev = version;
|
|
sha256 = "1kzk53ry60i814wa6n9y2ni0bcxhbi9p8gdv10b974gf23mhi8vc";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/madjar/nixbang";
|
|
description = "Special shebang to run scripts in a nix-shell";
|
|
mainProgram = "nixbang";
|
|
maintainers = [ lib.maintainers.madjar ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|