mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
36 lines
670 B
Nix
36 lines
670 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools_scm
|
|
, pytestrunner
|
|
, pytest
|
|
, glibcLocales
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "path.py";
|
|
version = "11.0";
|
|
name = pname + "-" + version;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "16134e5b287aba4a4125a6722e7837cf2a149fccc5000c500ae6c71a5525488b";
|
|
};
|
|
|
|
checkInputs = [ pytest pytestrunner glibcLocales packaging ];
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
meta = {
|
|
description = "A module wrapper for os.path";
|
|
homepage = https://github.com/jaraco/path.py;
|
|
license = lib.licenses.mit;
|
|
};
|
|
|
|
checkPhase = ''
|
|
py.test test_path.py
|
|
'';
|
|
}
|