git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pathable: init at 0.4.0
commit3f484044b0bb31ff2ca6b7fe3a9b2a8e944112a8 authorFabian Affolter <mail@fabian-affolter.ch> dateSat 26 Mar 2022, 21:56 (5 years ago) parent74c1fd0
2 files changed+47
pkgs/development/python-modules/pathable/default.nix+45 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pathable/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, pythonOlder
6+, poetry-core
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "pathable";
11+ version = "0.4.0";
12+ format = "pyproject";
13+
14+ disabled = pythonOlder "3.7";
15+
16+ src = fetchFromGitHub {
17+ owner = "p1c2u";
18+ repo = pname;
19+ rev = version;
20+ hash = "sha256-3qekweG+o7f6nm1cnCEHrWYn/fQ42GZrZkPwGbZcU38=";
21+ };
22+
23+ nativeBuildInputs = [
24+ poetry-core
25+ ];
26+
27+ checkInputs = [
28+ pytestCheckHook
29+ ];
30+
31+ postPatch = ''
32+ sed -i "/--cov/d" pyproject.toml
33+ '';
34+
35+ pythonImportsCheck = [
36+ "pathable"
37+ ];
38+
39+ meta = with lib; {
40+ description = "Library for object-oriented paths";
41+ homepage = "https://github.com/p1c2u/pathable";
42+ license = licenses.asl20;
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/top-level/python-packages.nix+2
@@ -5974,6 +5974,8 @@ in {
59745974
59755975 path-and-address = callPackage ../development/python-modules/path-and-address { };
59765976
5977+ pathable = callPackage ../development/python-modules/pathable { };
5978+
59775979 pathlib2 = callPackage ../development/python-modules/pathlib2 { };
59785980
59795981 pathlib = callPackage ../development/python-modules/pathlib { };