1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/path.py/default.nix

45 lines
866 B
Nix
Raw Normal View History

2017-06-06 10:26:49 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytestrunner
, pytest
, glibcLocales
2018-02-18 18:32:00 +00:00
, packaging
2018-11-04 10:35:08 +00:00
, isPy27
, backports_os
, importlib-metadata
2017-06-06 10:26:49 +01:00
}:
buildPythonPackage rec {
pname = "path.py";
2018-11-04 10:35:08 +00:00
version = "11.5.0";
name = pname + "-" + version;
2017-06-06 10:26:49 +01:00
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:08 +00:00
sha256 = "b6687a532a735a2d79a13e92bdb31cb0971abe936ea0fa78bcb47faf4372b3cb";
2017-06-06 10:26:49 +01:00
};
2018-02-18 18:32:00 +00:00
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
buildInputs = [ setuptools_scm ];
2018-11-04 10:35:08 +00:00
propagatedBuildInputs = [
importlib-metadata
] ++ lib.optional isPy27 backports_os
;
2017-06-06 10:26:49 +01:00
2018-11-04 10:35:08 +00:00
LC_ALL = "en_US.UTF-8";
2017-06-06 10:26:49 +01:00
meta = {
description = "A module wrapper for os.path";
homepage = https://github.com/jaraco/path.py;
2017-06-06 10:26:49 +01:00
license = lib.licenses.mit;
};
checkPhase = ''
2018-04-04 19:12:31 +01:00
# Ignore pytest configuration
rm pytest.ini
2017-06-06 10:26:49 +01:00
py.test test_path.py
'';
}