1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/python-modules/path.py/default.nix

36 lines
670 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
2017-06-06 10:26:49 +01:00
}:
buildPythonPackage rec {
pname = "path.py";
2018-02-17 13:21:23 +00:00
version = "11.0";
name = pname + "-" + version;
2017-06-06 10:26:49 +01:00
src = fetchPypi {
inherit pname version;
2018-02-17 13:21:23 +00:00
sha256 = "16134e5b287aba4a4125a6722e7837cf2a149fccc5000c500ae6c71a5525488b";
2017-06-06 10:26:49 +01:00
};
2018-02-18 18:32:00 +00:00
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
buildInputs = [ setuptools_scm ];
2017-06-06 10:26:49 +01:00
LC_ALL="en_US.UTF-8";
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 = ''
py.test test_path.py
'';
}