python.pkgs.btrfs: 11 -> 12
and switch to fetchFromGithub as it's not published on pypi
commit0e431818caf169d1eb24cd8772e814786a915747
authorEvils <evils.devils@protonmail.com>
dateSat 17 Apr 2021, 23:09 (6 years ago)
parent1fe6ed3
pkgs/development/python-modules/btrfs/default.nix+11−5
@@ -1,17 +1,23 @@
11{ lib
22, buildPythonPackage
3−, fetchPypi
3+, fetchFromGitHub
44}:
55
66buildPythonPackage rec {
77 pname = "btrfs";
8− version = "11";
8+ version = "12";
99
10− src = fetchPypi {
11− inherit pname version;
12− sha256 = "1w92sj47wy53ygz725xr613k32pk5khi0g9lrpp6img871241hrx";
10+ src = fetchFromGitHub {
11+ owner = "knorrie";
12+ repo = "python-btrfs";
13+ rev = "v${version}";
14+ sha256 = "sha256-ZQSp+pbHABgBTrCwC2YsUUXAf/StP4ny7MEhBgCRqgE=";
1315 };
1416
17+ # no tests (in v12)
18+ doCheck = false;
19+ pythonImportsCheck = [ "btrfs" ];
20+
1521 meta = with lib; {
1622 description = "Inspect btrfs filesystems";
1723 homepage = "https://github.com/knorrie/python-btrfs";