mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 08:54:46 +00:00
7d6f31bf6f
- enable tests - add pythonImportsCheck - switch to pypa builder
36 lines
754 B
Nix
36 lines
754 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "appdirs";
|
|
version = "1.4.4";
|
|
pypoject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fV0BZ7KxuoIWR2Fq9Gp0nRxlN0DdDSQVEA/ibiev30E=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "appdirs" ];
|
|
|
|
meta = {
|
|
description = "Python module for determining appropriate platform-specific dirs";
|
|
homepage = "https://github.com/ActiveState/appdirs";
|
|
changelog = "https://github.com/ActiveState/appdirs/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|