mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:04:15 +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.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jsonpickle,
|
|
pytestCheckHook,
|
|
requests,
|
|
responses,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-digitalocean";
|
|
version = "1.17.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koalalorenzo";
|
|
repo = "python-digitalocean";
|
|
tag = "v${version}";
|
|
hash = "sha256-CIYW6vl+IOO94VyfgTjJ3T13uGtz4BdKyVmE44maoLA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jsonpickle
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
preCheck = ''
|
|
cd digitalocean
|
|
'';
|
|
|
|
# Test tries to access the network
|
|
disabledTests = [ "TestFirewall" ];
|
|
|
|
pythonImportsCheck = [ "digitalocean" ];
|
|
|
|
meta = {
|
|
description = "Python API to manage Digital Ocean Droplets and Images";
|
|
homepage = "https://github.com/koalalorenzo/python-digitalocean";
|
|
changelog = "https://github.com/koalalorenzo/python-digitalocean/releases/tag/v${version}";
|
|
license = with lib.licenses; [ lgpl3Only ];
|
|
maintainers = with lib.maintainers; [ teh ];
|
|
};
|
|
}
|