nixpkgs/pkgs/development/python-modules/path.py/default.nix

43 lines
874 B
Nix
Raw Normal View History

2017-06-06 11:26:49 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
2018-12-20 15:42:41 +01:00
, pytest-flake8
2017-06-06 11:26:49 +02:00
, glibcLocales
2018-02-18 19:32:00 +01:00
, packaging
2018-11-04 11:35:08 +01:00
, isPy27
, backports_os
, importlib-metadata
2017-06-06 11:26:49 +02:00
}:
buildPythonPackage rec {
pname = "path.py";
2019-04-16 19:15:38 +02:00
version = "11.5.2";
2017-06-06 11:26:49 +02:00
src = fetchPypi {
inherit pname version;
2019-04-16 19:15:38 +02:00
sha256 = "de7cd643affbc23e56533a6e8d551ecdee4983501a08c24e4e71565202d8cdaa";
2017-06-06 11:26:49 +02:00
};
2018-12-20 15:42:41 +01:00
checkInputs = [ pytest pytest-flake8 glibcLocales packaging ];
2018-02-18 19:32:00 +01:00
buildInputs = [ setuptools_scm ];
2018-11-04 11:35:08 +01:00
propagatedBuildInputs = [
importlib-metadata
] ++ lib.optional isPy27 backports_os
;
2017-06-06 11:26:49 +02:00
2018-11-04 11:35:08 +01:00
LC_ALL = "en_US.UTF-8";
2017-06-06 11:26:49 +02:00
meta = {
description = "A module wrapper for os.path";
homepage = https://github.com/jaraco/path.py;
2017-06-06 11:26:49 +02:00
license = lib.licenses.mit;
};
checkPhase = ''
# ignore performance test which may fail when the system is under load
2018-12-20 15:42:41 +01:00
py.test -v -k 'not TestPerformance'
2017-06-06 11:26:49 +02:00
'';
}