depot/third_party/nixpkgs/pkgs/development/python-modules/python-decouple/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

39 lines
824 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-decouple";
version = "3.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "HBNetwork";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-sCUlE+92+nG7ZHuGKXRJVx2wokNP7/F7g8LvdRWqHCQ=";
};
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"decouple"
];
meta = with lib; {
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 licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}