mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-18 22:10:45 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
832 B
Nix
39 lines
832 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-decouple";
|
|
version = "3.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HBNetwork";
|
|
repo = "python-decouple";
|
|
tag = "v${version}";
|
|
hash = "sha256-F9Gu7Y/dJhwOJi/ZaoVclF3+4U/N5JdvpXwgGB3SF3Q=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "decouple" ];
|
|
|
|
meta = {
|
|
description = "Module to handle code and condifuration";
|
|
homepage = "https://github.com/HBNetwork/python-decouple";
|
|
changelog = "https://github.com/HBNetwork/python-decouple/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|