mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 23:06:35 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
1,021 B
Nix
52 lines
1,021 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pip,
|
|
pretend,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
virtualenv,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pip-api";
|
|
version = "0.0.34";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "di";
|
|
repo = "pip-api";
|
|
tag = version;
|
|
hash = "sha256-nmCP4hp+BsD80OBjerOu+QTBBExGHvn/v19od4V3ncI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ pip ];
|
|
|
|
nativeCheckInputs = [
|
|
pretend
|
|
pytestCheckHook
|
|
virtualenv
|
|
];
|
|
|
|
pythonImportsCheck = [ "pip_api" ];
|
|
|
|
disabledTests = [
|
|
"test_hash"
|
|
"test_hash_default_algorithm_is_256"
|
|
"test_installed_distributions"
|
|
"test_invoke_install"
|
|
"test_invoke_uninstall"
|
|
"test_isolation"
|
|
];
|
|
|
|
meta = {
|
|
description = "Importable pip API";
|
|
homepage = "https://github.com/di/pip-api";
|
|
changelog = "https://github.com/di/pip-api/blob/${version}/CHANGELOG";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|