mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Revert "python312Packages.forbiddenfruit: drop"
This reverts commit fedea1e0fa.
This commit is contained in:
49
pkgs/development/python-modules/forbiddenfruit/default.nix
Normal file
49
pkgs/development/python-modules/forbiddenfruit/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pynose,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.1.4";
|
||||
pname = "forbiddenfruit";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "clarete";
|
||||
repo = "forbiddenfruit";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-yHIZsVn2UVmWeBNIzWDE6AOwAXZilPqXo+bVtXqGkJk=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
env.FFRUIT_EXTENSION = "true";
|
||||
|
||||
pythonImportsCheck = [ "forbiddenfruit" ];
|
||||
|
||||
nativeCheckInputs = [ pynose ];
|
||||
|
||||
# https://github.com/clarete/forbiddenfruit/pull/47 required to switch to pytest
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
find ./build -name '*.so' -exec mv {} tests/unit \;
|
||||
nosetests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Patch python built-in objects";
|
||||
homepage = "https://github.com/clarete/forbiddenfruit";
|
||||
changelog = "https://github.com/clarete/forbiddenfruit/releases/tag/${version}";
|
||||
license = with licenses; [
|
||||
mit
|
||||
gpl3Plus
|
||||
];
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
@@ -273,8 +273,7 @@ mapAliases ({
|
||||
flufl_bounce = flufl-bounce; # added 2023-11-03
|
||||
flufl_i18n = flufl-i18n; # added 2023-11-03
|
||||
flufl_lock = flufl-lock; # added 2023-11-03
|
||||
fn = throw "fn was removed as it is no longer used by any package in nixpkgs, it is not compatible with python 3.11 or newer and it was last updated in 2014."; # added 2025-02-08
|
||||
forbiddenfruit = throw "forbiddenfruit has been removed, because it was unmaintained and relied on the nose test framework"; # added 2024-07-08
|
||||
fn = throw "fn was removed as it is no longer used by any package in nixpkgs, it is not compatible with python 3.11 or newer and it was last updated in 2014."; # added 2025-02-08 # added 2024-07-08
|
||||
FormEncode = formencode; # added 2023-02-19
|
||||
foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06
|
||||
foundationdb52 = throw "foundationdb52 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06
|
||||
|
||||
@@ -5144,6 +5144,8 @@ self: super: with self; {
|
||||
|
||||
foolscap = callPackage ../development/python-modules/foolscap { };
|
||||
|
||||
forbiddenfruit = callPackage ../development/python-modules/forbiddenfruit { };
|
||||
|
||||
fordpass = callPackage ../development/python-modules/fordpass { };
|
||||
|
||||
forecast-solar = callPackage ../development/python-modules/forecast-solar { };
|
||||
|
||||
Reference in New Issue
Block a user