python.pkgs.pathlib2: fix tests
This commit is contained in:
parent
e60a1fd433
commit
05be27f7dc
31
pkgs/development/python-modules/pathlib2/default.nix
Normal file
31
pkgs/development/python-modules/pathlib2/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, six
|
||||||
|
, pythonOlder
|
||||||
|
, scandir
|
||||||
|
, glibcLocales
|
||||||
|
}:
|
||||||
|
|
||||||
|
if !(pythonOlder "3.4") then null else buildPythonPackage rec {
|
||||||
|
pname = "pathlib2";
|
||||||
|
version = "2.2.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir;
|
||||||
|
checkInputs = [ glibcLocales ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export LC_ALL="en_US.UTF-8"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
|
||||||
|
homepage = https://pypi.python.org/pypi/pathlib2/;
|
||||||
|
license = with lib.licenses; [ mit ];
|
||||||
|
};
|
||||||
|
}
|
@ -14266,24 +14266,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pathlib2 = if !(pythonOlder "3.4") then null else buildPythonPackage rec {
|
pathlib2 = callPackage ../development/python-modules/pathlib2 { };
|
||||||
name = "pathlib2-${version}";
|
|
||||||
version = "2.2.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pathlib2/${name}.tar.gz";
|
|
||||||
sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ six ] ++ optional (pythonOlder "3.5") scandir;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
|
|
||||||
homepage = https://pypi.python.org/pypi/pathlib2/;
|
|
||||||
license = with licenses; [ mit ];
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
pathpy = callPackage ../development/python-modules/path.py { };
|
pathpy = callPackage ../development/python-modules/path.py { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user